Fix reroute for generic type

This commit is contained in:
Jairo Correa 2023-09-23 15:03:21 -03:00
parent dba493ee59
commit 8a4f19a90b

View File

@ -95,7 +95,7 @@ app.registerExtension({
} else { } else {
// We've found an output // We've found an output
const nodeOutType = node.inputs && node.inputs[link?.target_slot] && node.inputs[link.target_slot].type ? node.inputs[link.target_slot].type : null; const nodeOutType = node.inputs && node.inputs[link?.target_slot] && node.inputs[link.target_slot].type ? node.inputs[link.target_slot].type : null;
if (inputType && nodeOutType !== inputType) { if (inputType && nodeOutType !== inputType && 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);
} else { } else {