removed the node.data field, now you must use onSerialize and onConfigure

This commit is contained in:
tamat
2018-11-20 16:42:51 +01:00
parent 259b30b714
commit 5984788e17
3 changed files with 4 additions and 8 deletions

View File

@@ -1765,7 +1765,6 @@ LGraphNode.prototype._ctor = function( title )
this.properties = {}; //for the values
this.properties_info = []; //for the info
this.data = null; //persistent local data
this.flags = {};
}
@@ -1886,7 +1885,6 @@ LGraphNode.prototype.serialize = function()
type: this.type,
pos: this.pos,
size: this.size,
data: this.data,
flags: LiteGraph.cloneObject(this.flags),
mode: this.mode
};