mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-11 04:07:36 +08:00
[FIX] incorrect 'last_link_id' error
This commit is contained in:
parent
806520572b
commit
2d2075fe2d
@ -1713,14 +1713,6 @@ export class ComfyApp {
|
|||||||
link[4] +=1;
|
link[4] +=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// max link id
|
|
||||||
var max_link_id = 0;
|
|
||||||
for(const link of graphData.links)
|
|
||||||
{
|
|
||||||
if(max_link_id < link[0])
|
|
||||||
{max_link_id = link[0];}
|
|
||||||
}
|
|
||||||
|
|
||||||
// id-nodes, id-links
|
// id-nodes, id-links
|
||||||
var nodes = {};
|
var nodes = {};
|
||||||
for(const node of graphData.nodes)
|
for(const node of graphData.nodes)
|
||||||
@ -1735,7 +1727,7 @@ export class ComfyApp {
|
|||||||
if(to_id == null)
|
if(to_id == null)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
let link_id = ++max_link_id;
|
let link_id = ++graphData.last_link_id;
|
||||||
let from_node = nodes[from_id];
|
let from_node = nodes[from_id];
|
||||||
let to_node = nodes[to_id];
|
let to_node = nodes[to_id];
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user