fixes in subgraph

This commit is contained in:
tamat
2020-07-20 15:32:39 +02:00
parent 55ad1b281e
commit f9d006c0df
5 changed files with 656 additions and 638 deletions

View File

@@ -264,6 +264,16 @@
this.registerNodeType(name, classobj);
},
/**
* Removes all previously registered node's types
*/
clearRegisteredTypes: function() {
this.registered_node_types = {};
this.node_types_by_file_extension = {};
this.Nodes = {};
this.searchbox_extras = {};
},
/**
* Adds this method to all nodetypes, existing and to be created
* (You can add it to LGraphNode.prototype but then existing node types wont have it)
@@ -1579,10 +1589,10 @@
return;
}
node.graph.beforeChange();
this.beforeChange();
this.inputs[name] = { name: name, type: type, value: value };
this._version++;
node.graph.afterChange();
this.afterChange();
if (this.onInputAdded) {
this.onInputAdded(name, type);