From bcbde45b6a00bf20a8cd806890efe83d629cb701 Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Fri, 26 Apr 2019 16:24:58 +0800 Subject: [PATCH] fix: reset current_node after deletion --- src/litegraph.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/litegraph.js b/src/litegraph.js index a0fe86f23..1d9239887 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -5220,6 +5220,7 @@ LGraphNode.prototype.executeAction = function(action) node.is_selected = false; } this.selected_nodes = {}; + this.current_node = null; this.highlighted_links = {}; this.setDirty(true); }; @@ -5235,6 +5236,7 @@ LGraphNode.prototype.executeAction = function(action) this.graph.remove(m); } this.selected_nodes = {}; + this.current_node = null; this.highlighted_links = {}; this.setDirty(true); };