Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
9a8f5863
Commit
9a8f5863
authored
Apr 02, 2023
by
comfyanonymous
Browse files
Merge branch 'fixReroute' of
https://github.com/flyingshutter/ComfyUI
parents
d4273ead
9586de9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
web/extensions/core/rerouteNode.js
web/extensions/core/rerouteNode.js
+8
-1
No files found.
web/extensions/core/rerouteNode.js
View file @
9a8f5863
...
...
@@ -43,8 +43,15 @@ app.registerExtension({
const
node
=
app
.
graph
.
getNodeById
(
link
.
origin_id
);
const
type
=
node
.
constructor
.
type
;
if
(
type
===
"
Reroute
"
)
{
if
(
node
===
this
)
{
// We've found a circle
currentNode
.
disconnectInput
(
link
.
target_slot
);
currentNode
=
null
;
}
else
{
// Move the previous node
currentNode
=
node
;
currentNode
=
node
;
}
}
else
{
// We've found the end
inputNode
=
currentNode
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment