Skip to content

Commit f219654

Browse files
committed
Fix reroute to wildcard & multi-typed slots
Use the same type check the rest of the connection process uses.
1 parent 534ea17 commit f219654

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/extensions/core/rerouteNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ app.registerExtension({
128128
: null
129129
if (
130130
inputType &&
131-
inputType !== '*' &&
132-
nodeOutType !== inputType
131+
// @ts-expect-error Will self-resolve when LiteGraph types are generated
132+
!LiteGraph.isValidConnection(inputType, nodeOutType)
133133
) {
134134
// The output doesnt match our input so disconnect it
135135
node.disconnectInput(link.target_slot)

0 commit comments

Comments
 (0)