make sure the property doesn't only exist, but is actually initialized
This commit is contained in:
parent
4a1b1a4d41
commit
f58fcdd492
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ initialize = func {
|
||||||
|
|
||||||
initDoubleProp = func {
|
initDoubleProp = func {
|
||||||
node = arg[0]; prop = arg[1]; val = arg[2];
|
node = arg[0]; prop = arg[1]; val = arg[2];
|
||||||
if(node.getNode(prop) != nil) {
|
if(node.getNode(prop) != nil and node.getType() != "NONE") {
|
||||||
val = num(node.getNode(prop).getValue());
|
val = num(node.getNode(prop).getValue());
|
||||||
}
|
}
|
||||||
node.getNode(prop, 1).setDoubleValue(val);
|
node.getNode(prop, 1).setDoubleValue(val);
|
||||||
|
|
Loading…
Add table
Reference in a new issue