Skip to content

Commit

Permalink
Fix reroute to wildcard & multi-typed slots (#769)
Browse files Browse the repository at this point in the history
Use the same type check the rest of the connection process uses.
  • Loading branch information
webfiltered authored Sep 9, 2024
1 parent 8b77dde commit 0e01bb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/core/rerouteNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ app.registerExtension({
: null
if (
inputType &&
inputType !== '*' &&
nodeOutType !== inputType
// @ts-expect-error Will self-resolve when LiteGraph types are generated
!LiteGraph.isValidConnection(inputType, nodeOutType)
) {
// The output doesnt match our input so disconnect it
node.disconnectInput(link.target_slot)
Expand Down

0 comments on commit 0e01bb3

Please sign in to comment.