mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-06 16:10:09 +00:00
[Cleanup] Fix node background drawn twice / misc (#1040)
This commit is contained in:
@@ -837,9 +837,15 @@ export class LGraph implements LinkNetwork, BaseLGraph, Serialisable<Serialisabl
|
||||
}
|
||||
|
||||
// not found
|
||||
if (this._nodes_by_id[node.id] == null) return
|
||||
if (this._nodes_by_id[node.id] == null) {
|
||||
console.warn("LiteGraph: node not found", node)
|
||||
return
|
||||
}
|
||||
// cannot be removed
|
||||
if (node.ignore_remove) return
|
||||
if (node.ignore_remove) {
|
||||
console.warn("LiteGraph: node cannot be removed", node)
|
||||
return
|
||||
}
|
||||
|
||||
// sure? - almost sure is wrong
|
||||
this.beforeChange()
|
||||
|
||||
Reference in New Issue
Block a user