This commit is contained in:
tamat
2019-11-11 16:51:11 +01:00
parent a4352d5624
commit eb327547cc
3 changed files with 105 additions and 98 deletions

View File

@@ -6212,9 +6212,12 @@ LGraphNode.prototype.executeAction = function(action)
**/
LGraphCanvas.prototype.deleteSelectedNodes = function() {
for (var i in this.selected_nodes) {
var m = this.selected_nodes[i];
var node = this.selected_nodes[i];
//if(m == this.node_in_panel) this.showNodePanel(null);
this.graph.remove(m);
this.graph.remove(node);
if (this.onNodeDeselected) {
this.onNodeDeselected(node);
}
}
this.selected_nodes = {};
this.current_node = null;