From c89300743bc4840fa1e5bc16030179a082043be9 Mon Sep 17 00:00:00 2001 From: xiaoshuisheng Date: Mon, 11 Dec 2023 12:22:01 +0800 Subject: [PATCH] [FIX] remove all output 'FLOW' connection of the original node when a flow connection is builded. --- web/lib/litegraph.core.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js index fc5340f89..4c63a9b2d 100644 --- a/web/lib/litegraph.core.js +++ b/web/lib/litegraph.core.js @@ -4309,6 +4309,15 @@ changed = true; } break; + + // if it is a flow-control connection, and the original output link is not null, discounnect + case "FLOW": + console.log("[Link Connect] remove output links of 'FLOW' connection."); + this.graph.beforeChange(); + this.disconnectOutput(slot); + changed = true; + break; + default: break; }