Fix type resolution at subgraph boundary

This commit is contained in:
Austin Mroz 2025-10-18 20:11:04 -07:00
parent 405c99ec16
commit d7aba8086f
No known key found for this signature in database

View File

@ -103,11 +103,9 @@ app.registerExtension({
} }
//On Connect //On Connect
if (link_info && node.graph && slotType == 1 && isChangeConnect) { if (link_info && node.graph && slotType == 1 && isChangeConnect) {
const fromNode = node.graph._nodes.find((otherNode) => otherNode.id == link_info.origin_id); const resolve = link_info.resolve(node.graph)
const type = (resolve?.subgraphInput ?? resolve?.output)?.type
if (fromNode && fromNode.outputs && fromNode.outputs[link_info.origin_slot]) { if (type) {
const type = fromNode.outputs[link_info.origin_slot].type;
if (this.title === "Set"){ if (this.title === "Set"){
this.title = (!disablePrefix ? "Set_" : "") + type; this.title = (!disablePrefix ? "Set_" : "") + type;
} }