From fd436fad2f3bc964f96e2db66009fa2d52d49416 Mon Sep 17 00:00:00 2001 From: niknah Date: Fri, 13 Sep 2024 14:25:21 +1000 Subject: [PATCH] Don't show output / inputs that accept everything --- js/QuickConnection.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/QuickConnection.js b/js/QuickConnection.js index f8dd543..727749f 100644 --- a/js/QuickConnection.js +++ b/js/QuickConnection.js @@ -16,6 +16,9 @@ export class QuickConnection { this.useInputsWithLinks = false; this.release_link_on_empty_shows_menu = true; this.connectDotOnly = true; + this.doNotAcceptType = /^\*$/; + this.boxAlpha = 0.7; + this.boxBackground = '#000'; } init() { @@ -144,7 +147,7 @@ export class QuickConnection { input.type, fromConnection.type, ); - if (accept) { + if (accept && !this.doNotAcceptType.exec(input.type)) { accepting.push({ node, connection: input,