Skip to content

Commit 228e8eb

Browse files
committed
Add extra advisory comments
1 parent 8589b23 commit 228e8eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/litegraph/src/LGraphCanvas.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3608,6 +3608,7 @@ export class LGraphCanvas
36083608
subgraphs: []
36093609
}
36103610

3611+
// NOTE: logic for traversing nested subgraphs depends on this being a set.
36113612
const subgraphs = new Set<Subgraph>()
36123613

36133614
// Create serialisable objects
@@ -3646,6 +3647,7 @@ export class LGraphCanvas
36463647
}
36473648

36483649
// Add unique subgraph entries
3650+
// NOTE: subgraphs is appended to mid iteration.
36493651
for (const subgraph of subgraphs) {
36503652
for (const node of subgraph.nodes) {
36513653
if (node instanceof SubgraphNode) {

0 commit comments

Comments
 (0)