From 51b2bd612cf8488284b2ecccfae5a392e60934bd Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Thu, 1 Jun 2023 17:07:05 -0500 Subject: [PATCH] Don't copy non-clonable nodes --- src/litegraph.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/litegraph.js b/src/litegraph.js index 052d38003..1ed648733 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -7109,6 +7109,8 @@ LGraphNode.prototype.executeAction = function(action) var selected_nodes_array = []; for (var i in this.selected_nodes) { var node = this.selected_nodes[i]; + if (node.clonable === false) + continue; node._relative_id = index; selected_nodes_array.push(node); index += 1;