mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
Fix reroute to wildcard & multi-typed slots (#769)
Use the same type check the rest of the connection process uses.
This commit is contained in:
@@ -128,8 +128,8 @@ app.registerExtension({
|
|||||||
: null
|
: null
|
||||||
if (
|
if (
|
||||||
inputType &&
|
inputType &&
|
||||||
inputType !== '*' &&
|
// @ts-expect-error Will self-resolve when LiteGraph types are generated
|
||||||
nodeOutType !== inputType
|
!LiteGraph.isValidConnection(inputType, nodeOutType)
|
||||||
) {
|
) {
|
||||||
// The output doesnt match our input so disconnect it
|
// The output doesnt match our input so disconnect it
|
||||||
node.disconnectInput(link.target_slot)
|
node.disconnectInput(link.target_slot)
|
||||||
|
|||||||
Reference in New Issue
Block a user