let initNode() initialize a property to double(0) by default
This commit is contained in:
parent
64296a8d4a
commit
238fce1d15
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ var nodeList = func {
|
|||
# "BOOL"). If it is omitted, then "DOUBLE" is used for numbers, and STRING
|
||||
# for everything else. Returns the property as props.Node.
|
||||
#
|
||||
var initNode = func(prop, value, type = nil) {
|
||||
var initNode = func(prop, value = 0, type = nil) {
|
||||
if(!isa(prop, props.Node)) prop = props.globals.getNode(prop, 1);
|
||||
if(prop.getType() != "NONE") value = prop.getValue();
|
||||
if(type == nil) prop.setValue(value);
|
||||
|
|
Loading…
Add table
Reference in a new issue