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
19fbab6c
"...git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "82e1a8bc1e32dcf856f9738ac0742cf29fdab047"
Commit
19fbab6c
authored
Aug 03, 2023
by
comfyanonymous
Browse files
Fix reroute nodes not working with bypassed nodes.
parent
05321fd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
web/scripts/app.js
web/scripts/app.js
+12
-11
No files found.
web/scripts/app.js
View file @
19fbab6c
...
@@ -1351,9 +1351,17 @@ export class ComfyApp {
...
@@ -1351,9 +1351,17 @@ export class ComfyApp {
let
parent
=
node
.
getInputNode
(
i
);
let
parent
=
node
.
getInputNode
(
i
);
if
(
parent
)
{
if
(
parent
)
{
let
link
=
node
.
getInputLink
(
i
);
let
link
=
node
.
getInputLink
(
i
);
while
(
parent
.
mode
===
4
)
{
while
(
parent
.
mode
===
4
||
parent
.
isVirtualNode
)
{
let
found
=
false
;
let
found
=
false
;
if
(
link
)
{
if
(
parent
.
isVirtualNode
)
{
link
=
parent
.
getInputLink
(
link
.
origin_slot
);
if
(
link
)
{
parent
=
parent
.
getInputNode
(
link
.
origin_slot
);
if
(
parent
)
{
found
=
true
;
}
}
}
else
if
(
link
&&
parent
.
mode
===
4
)
{
let
all_inputs
=
[
link
.
origin_slot
].
concat
(
parent
.
inputs
)
let
all_inputs
=
[
link
.
origin_slot
].
concat
(
parent
.
inputs
)
for
(
let
parent_input
in
all_inputs
)
{
for
(
let
parent_input
in
all_inputs
)
{
if
(
parent
.
inputs
[
parent_input
].
type
===
node
.
inputs
[
i
].
type
)
{
if
(
parent
.
inputs
[
parent_input
].
type
===
node
.
inputs
[
i
].
type
)
{
...
@@ -1366,20 +1374,13 @@ export class ComfyApp {
...
@@ -1366,20 +1374,13 @@ export class ComfyApp {
}
}
}
}
}
}
if
(
!
found
)
{
if
(
!
found
)
{
break
;
break
;
}
}
}
}
while
(
parent
&&
parent
.
isVirtualNode
)
{
link
=
parent
.
getInputLink
(
link
.
origin_slot
);
if
(
link
)
{
parent
=
parent
.
getInputNode
(
link
.
origin_slot
);
}
else
{
parent
=
null
;
}
}
if
(
link
)
{
if
(
link
)
{
inputs
[
node
.
inputs
[
i
].
name
]
=
[
String
(
link
.
origin_id
),
parseInt
(
link
.
origin_slot
)];
inputs
[
node
.
inputs
[
i
].
name
]
=
[
String
(
link
.
origin_id
),
parseInt
(
link
.
origin_slot
)];
}
}
...
...
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