mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 23:00:20 +08:00
allows connect primitive node to reroute if primitive node has type
This commit is contained in:
parent
631132c8c5
commit
c54a3ae4b6
@ -240,6 +240,7 @@ app.registerExtension({
|
|||||||
|
|
||||||
// No widget, we cant connect
|
// No widget, we cant connect
|
||||||
if (!input.widget) {
|
if (!input.widget) {
|
||||||
|
if (this.outputs[0]?.type != '*' && target_node.type == "Reroute") return true;
|
||||||
if (!(input.type in ComfyWidgets)) return false;
|
if (!(input.type in ComfyWidgets)) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user