File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ import { ExtensionManager } from '@/types/extensionTypes'
63
63
import type { NodeExecutionId } from '@/types/nodeIdentification'
64
64
import { ColorAdjustOptions , adjustColor } from '@/utils/colorUtil'
65
65
import { graphToPrompt } from '@/utils/executionUtil'
66
+ import { forEachNode } from '@/utils/graphTraversalUtil'
66
67
import {
67
68
getNodeByExecutionId ,
68
69
triggerCallbackOnAllNodes
@@ -1700,12 +1701,13 @@ export class ComfyApp {
1700
1701
for ( const nodeId in defs ) {
1701
1702
this . registerNodeDef ( nodeId , defs [ nodeId ] )
1702
1703
}
1703
- for ( const node of this . graph . nodes ) {
1704
+ // Refresh combo widgets in all nodes including those in subgraphs
1705
+ forEachNode ( this . graph , ( node ) => {
1704
1706
const def = defs [ node . type ]
1705
1707
// Allow primitive nodes to handle refresh
1706
1708
node . refreshComboInNode ?.( defs )
1707
1709
1708
- if ( ! def ?. input ) continue
1710
+ if ( ! def ?. input ) return
1709
1711
1710
1712
if ( node . widgets ) {
1711
1713
const nodeInputs = def . input
@@ -1732,7 +1734,7 @@ export class ComfyApp {
1732
1734
}
1733
1735
}
1734
1736
}
1735
- }
1737
+ } )
1736
1738
1737
1739
await useExtensionService ( ) . invokeExtensionsAsync (
1738
1740
'refreshComboInNodes' ,
You can’t perform that action at this time.
0 commit comments