[Cleanup] Fix node background drawn twice / misc (#1040)

This commit is contained in:
filtered
2025-05-11 00:47:48 +10:00
committed by GitHub
parent d452240936
commit 6ff80cfd36
6 changed files with 20 additions and 14 deletions

View File

@@ -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()