From 54193f12ad04bf19e21649aa4a37ae3e7b627d01 Mon Sep 17 00:00:00 2001 From: space-nuko <24979496+space-nuko@users.noreply.github.com> Date: Thu, 1 Jun 2023 15:46:39 -0500 Subject: [PATCH] Update litegraph --- web/lib/litegraph.core.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js index 94eef6494..634e2859f 100644 --- a/web/lib/litegraph.core.js +++ b/web/lib/litegraph.core.js @@ -7140,6 +7140,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) + continue; node._relative_id = index; selected_nodes_array.push(node); index += 1; @@ -14408,6 +14410,10 @@ if (typeof exports != "undefined") { this.size = [140, 80]; this.properties = { enabled: true }; this.enabled = true; + // TEMP: Until ID reassignment is implemented + if (LiteGraph.use_uuids) { + this.clonable = false; + } //create inner graph this.subgraph = new LiteGraph.LGraph();