From 0e01bb3c07bb69d39e9bd8c484051d95ad430041 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Mon, 9 Sep 2024 18:53:47 +1000 Subject: [PATCH] Fix reroute to wildcard & multi-typed slots (#769) Use the same type check the rest of the connection process uses. --- src/extensions/core/rerouteNode.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensions/core/rerouteNode.ts b/src/extensions/core/rerouteNode.ts index c421aa3024..524d7904d5 100644 --- a/src/extensions/core/rerouteNode.ts +++ b/src/extensions/core/rerouteNode.ts @@ -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)