From d185e18b720babda18b8ace6e6155cb6bd59e050 Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Sun, 28 Apr 2019 17:24:11 +0800 Subject: [PATCH] fix: use 1-based numbering for id current id is 2-based --- src/litegraph.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/litegraph.js b/src/litegraph.js index 8ab8267b4..adfcdb5b0 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -472,8 +472,8 @@ this.stop(); this.status = LGraph.STATUS_STOPPED; - this.last_node_id = 1; - this.last_link_id = 1; + this.last_node_id = 0; + this.last_link_id = 0; this._version = -1; //used to detect changes @@ -9178,4 +9178,4 @@ LGraphNode.prototype.executeAction = function(action) } })(this); -if (typeof exports != "undefined") exports.LiteGraph = this.LiteGraph; \ No newline at end of file +if (typeof exports != "undefined") exports.LiteGraph = this.LiteGraph;