Merge pull request #75 from NateScarlet/id-numbering

Use 1-based id numbering
This commit is contained in:
Javi Agenjo
2019-04-28 11:58:26 +02:00
committed by GitHub
3 changed files with 9521 additions and 1881 deletions

File diff suppressed because it is too large Load Diff

10103
build/litegraph.min.js vendored

File diff suppressed because it is too large Load Diff

View File

@@ -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;
if (typeof exports != "undefined") exports.LiteGraph = this.LiteGraph;