From 2c215a625178a237e506313b7ba2342b0be24270 Mon Sep 17 00:00:00 2001 From: AustinMroz Date: Mon, 11 Aug 2025 13:46:32 -0500 Subject: [PATCH] Fix subgraph reroute serialization (#4911) --- 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 e79ec3ea9c..b4390736b3 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 } }