[fix] Fix graph configuration callbacks not reaching subgraph nodes (#4572)

This commit is contained in:
Christian Byrne
2025-07-29 00:17:03 -07:00
committed by GitHub
parent dd14144f47
commit 4b75528c39

View File

@@ -752,16 +752,12 @@ export class ComfyApp {
fixLinkInputSlots(this)
// Fire callbacks before the onConfigure, this is used by widget inputs to setup the config
for (const node of graph.nodes) {
node.onGraphConfigured?.()
}
triggerCallbackOnAllNodes(this, 'onGraphConfigured')
const r = onConfigure?.apply(this, args)
// Fire after onConfigure, used by primitives to generate widget using input nodes config
for (const node of graph.nodes) {
node.onAfterGraphConfigured?.()
}
triggerCallbackOnAllNodes(this, 'onAfterGraphConfigured')
return r
}