From fc294112e732427c316f9fcc45f9f740bb5ae54c Mon Sep 17 00:00:00 2001 From: Comfy Org PR Bot Date: Tue, 12 Aug 2025 05:53:09 +0800 Subject: [PATCH] [backport 1.25] Fix subgraph reroute serialization (#4920) Co-authored-by: AustinMroz --- src/lib/litegraph/src/LGraph.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/litegraph/src/LGraph.ts b/src/lib/litegraph/src/LGraph.ts index e79ec3ea9..b4390736b 100644 --- a/src/lib/litegraph/src/LGraph.ts +++ b/src/lib/litegraph/src/LGraph.ts @@ -2331,6 +2331,9 @@ export class Subgraph nodes: this.nodes.map((node) => node.serialize()), groups: this.groups.map((group) => group.serialize()), links: [...this.links.values()].map((x) => x.asSerialisable()), + reroutes: this.reroutes.size + ? [...this.reroutes.values()].map((x) => x.asSerialisable()) + : undefined, extra: this.extra } }