fix: Fixed the problem of recalculating internal nodes after adding selected node group (#4156)

This commit is contained in:
Yiqun Xu
2025-08-27 13:08:25 -07:00
committed by GitHub
parent d766cd6fe5
commit f3d9f4cffb
2 changed files with 5 additions and 0 deletions

View File

@@ -446,6 +446,9 @@ export function useCoreCommands(): ComfyCommand[] {
)
group.resizeTo(canvas.selectedItems, padding)
canvas.graph?.add(group)
group.recomputeInsideNodes()
useTitleEditorStore().titleEditorTarget = group
}
},

View File

@@ -42,6 +42,8 @@ app.registerExtension({
this.graph.add(group)
// @ts-expect-error fixme ts strict error
this.graph.change()
group.recomputeInsideNodes()
}
})
}