From f62b33d95a0e31bf678d6b62ef74ad673b59402b Mon Sep 17 00:00:00 2001 From: Mohsen Karami Date: Tue, 6 Dec 2022 23:27:33 +0330 Subject: [PATCH] Add the ability to deselect the selected blocks in multi-select mode --- src/litegraph.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/litegraph.js b/src/litegraph.js index c0242831e..44366d2cd 100644 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -6053,9 +6053,7 @@ LGraphNode.prototype.executeAction = function(action) this.graph.beforeChange(); this.node_dragged = node; } - if (!this.selected_nodes[node.id]) { - this.processNodeSelected(node, e); - } + this.processNodeSelected(node, e); } this.dirty_canvas = true; @@ -7316,6 +7314,7 @@ LGraphNode.prototype.executeAction = function(action) for (var i in nodes) { var node = nodes[i]; if (node.is_selected) { + this.deselectNode(node); continue; }