mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 10:59:53 +00:00
fix: delayed recursion
This commit is contained in:
@@ -269,12 +269,15 @@ export class LGraphGroup implements Positionable, IPinnable, IColorable {
|
||||
}
|
||||
|
||||
// Move groups we wholly contain and recursively compute their children
|
||||
const containedGroups: LGraphGroup[] = []
|
||||
for (const group of groups) {
|
||||
if (group !== this && containsRect(this._bounding, group._bounding)) {
|
||||
children.add(group)
|
||||
group.recomputeInsideNodes(maxDepth - 1)
|
||||
containedGroups.push(group)
|
||||
}
|
||||
}
|
||||
for (const group of containedGroups)
|
||||
group.recomputeInsideNodes(maxDepth - 1)
|
||||
|
||||
groups.sort((a, b) => {
|
||||
if (a === this) {
|
||||
|
||||
Reference in New Issue
Block a user