Fix bypassed nodes with no inputs.
This commit is contained in:
parent
19fbab6ce3
commit
077617e8c9
|
@ -1362,8 +1362,11 @@ export class ComfyApp {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (link && parent.mode === 4) {
|
} else if (link && parent.mode === 4) {
|
||||||
let all_inputs = [link.origin_slot].concat(parent.inputs)
|
let all_inputs = [link.origin_slot];
|
||||||
|
if (parent.inputs) {
|
||||||
|
all_inputs = all_inputs.concat(Object.keys(parent.inputs))
|
||||||
for (let parent_input in all_inputs) {
|
for (let parent_input in all_inputs) {
|
||||||
|
parent_input = all_inputs[parent_input];
|
||||||
if (parent.inputs[parent_input].type === node.inputs[i].type) {
|
if (parent.inputs[parent_input].type === node.inputs[i].type) {
|
||||||
link = parent.getInputLink(parent_input);
|
link = parent.getInputLink(parent_input);
|
||||||
if (link) {
|
if (link) {
|
||||||
|
@ -1374,7 +1377,7 @@ export class ComfyApp {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!found) {
|
if (!found) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue