1
0
Fork 0

don't set nil values with props.setDoubleValue()

This commit is contained in:
mfranz 2006-10-17 20:33:02 +00:00
parent 82c4dd05ed
commit 2d2674d952

View file

@ -24,8 +24,12 @@ var aimodelsN = nil;
# initialize property if it doesn't exist, and set node type otherwise
init_prop = func(node, prop, val, type = "double") {
if (node.getNode(prop) != nil) {
val = node.getNode(prop).getValue();
var n = node.getNode(prop);
if (n != nil) {
var v = n.getValue();
if (v != nil) {
val = v;
}
}
node = node.getNode(prop, 1);
if (type == "double") {