mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 15:27:04 +08:00
Sort nodes before saving
This commit is contained in:
parent
374e093e09
commit
d3b32a4dae
@ -2033,6 +2033,9 @@ export class ComfyApp {
|
||||
}
|
||||
|
||||
const workflow = graph.serialize();
|
||||
// links are already sorted, but nodes are not
|
||||
workflow["nodes"] = Object.values(workflow["nodes"]).sort((a, b) => a.id - b.id);
|
||||
|
||||
const output = {};
|
||||
// Process nodes in order of execution
|
||||
for (const outerNode of graph.computeExecutionOrder(false)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user