Temporary implementation of props.getBoolValue() which correctly
interprets the string "false". Eventually this needs to be an extension function wrapping SGPropertyNode::getBoolValue().
This commit is contained in:
parent
f0eecbb59a
commit
a67c4113e8
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,11 @@ Node = {
|
|||
removeChild : func { wrap(_removeChild(me._g, arg)) },
|
||||
getNode : func { wrap(_getNode(me._g, arg)) },
|
||||
|
||||
getBoolValue : func {
|
||||
val = getValue();
|
||||
if(getType() == "STRING" and val == "false") { 0 }
|
||||
else { val }
|
||||
}
|
||||
};
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue