1
0
Fork 0

src/Scripting/nasal-props.cxx:f_getAttribute(): added VALUE_CHANGED_UP and VALUE_CHANGED_DOWN.

This commit is contained in:
Julian Smith 2021-06-02 11:54:57 +01:00
parent a5de1cc33f
commit ef07f26023

View file

@ -189,7 +189,10 @@ static naRef f_getAttribute(naContext c, naRef me, int argc, naRef* args)
else if(!strcmp(a, "trace-write")) attr = SGPropertyNode::TRACE_WRITE;
else if(!strcmp(a, "userarchive")) attr = SGPropertyNode::USERARCHIVE;
else if(!strcmp(a, "preserve")) attr = SGPropertyNode::PRESERVE;
else if(!strcmp(a, "protected")) attr = SGPropertyNode::PROTECTED;
else if(!strcmp(a, "protected")) attr = SGPropertyNode::PROTECTED;
else if(!strcmp(a, "listener-safe")) attr = SGPropertyNode::LISTENER_SAFE;
else if(!strcmp(a, "value-changed-up")) attr = SGPropertyNode::VALUE_CHANGED_UP;
else if(!strcmp(a, "value-changed-down")) attr = SGPropertyNode::VALUE_CHANGED_DOWN;
else {
naRuntimeError(c, "props.getAttribute() with invalid attribute");