Skip to content

Commit 51b2bd6

Browse files
committed
Don't copy non-clonable nodes
1 parent 43aa627 commit 51b2bd6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/litegraph.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7109,6 +7109,8 @@ LGraphNode.prototype.executeAction = function(action)
71097109
var selected_nodes_array = [];
71107110
for (var i in this.selected_nodes) {
71117111
var node = this.selected_nodes[i];
7112+
if (node.clonable === false)
7113+
continue;
71127114
node._relative_id = index;
71137115
selected_nodes_array.push(node);
71147116
index += 1;

0 commit comments

Comments
 (0)