From f08d1bf5b4c477bbeb6dd9faefc8b79858dfe499 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 10 Jul 2008 10:58:06 +0000 Subject: [PATCH] let n.getAttribute("last") return SGPropertyNode::LAST_USED_ATTRIBUTE (this is the same constant value for all properties) --- src/Scripting/nasal-props.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Scripting/nasal-props.cxx b/src/Scripting/nasal-props.cxx index 6e6190047..3133d32ac 100644 --- a/src/Scripting/nasal-props.cxx +++ b/src/Scripting/nasal-props.cxx @@ -87,6 +87,7 @@ static naRef f_getAttribute(naContext c, naRef me, int argc, naRef* args) else if(!strcmp(a, "references")) return naNum(node->getNumRefs()); else if(!strcmp(a, "tied")) return naNum((*node)->isTied()); else if(!strcmp(a, "alias")) return naNum((*node)->isAlias()); + else if(!strcmp(a, "last")) return naNum(SGPropertyNode::LAST_USED_ATTRIBUTE); else if(!strcmp(a, "readable")) attr = SGPropertyNode::READ; else if(!strcmp(a, "writable")) attr = SGPropertyNode::WRITE; else if(!strcmp(a, "archive")) attr = SGPropertyNode::ARCHIVE; -- 2.39.5