"src/sdk/git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "e33b14d5f66c40356eff25056737d9ba5d8fe8ff"
Commit 9a8f5863 authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'fixReroute' of https://github.com/flyingshutter/ComfyUI

parents d4273ead 9586de9d
...@@ -43,8 +43,15 @@ app.registerExtension({ ...@@ -43,8 +43,15 @@ app.registerExtension({
const node = app.graph.getNodeById(link.origin_id); const node = app.graph.getNodeById(link.origin_id);
const type = node.constructor.type; const type = node.constructor.type;
if (type === "Reroute") { if (type === "Reroute") {
if (node === this) {
// We've found a circle
currentNode.disconnectInput(link.target_slot);
currentNode = null;
}
else {
// Move the previous node // Move the previous node
currentNode = node; currentNode = node;
}
} else { } else {
// We've found the end // We've found the end
inputNode = currentNode; inputNode = currentNode;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment