1
0
Fork 0

make sure the property doesn't only exist, but is actually initialized

This commit is contained in:
mfranz 2007-01-13 18:35:22 +00:00
parent 4a1b1a4d41
commit f58fcdd492

View file

@ -118,7 +118,7 @@ initialize = func {
initDoubleProp = func {
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());
}
node.getNode(prop, 1).setDoubleValue(val);