]> git.mxchange.org Git - simgear.git/commitdiff
cppbind: disable special handling of 'parents' for ghost.
authorThomas Geymayer <tomgey@gmail.com>
Mon, 5 May 2014 12:48:29 +0000 (14:48 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 5 May 2014 12:48:29 +0000 (14:48 +0200)
simgear/nasal/cppbind/Ghost.hxx

index b3309e92976c79944367d70b53d544951f43fb0d..834965886d492bf49a53fb103283708e3129736c 100644 (file)
@@ -881,14 +881,15 @@ namespace nasal
       static const char* getMember(naContext c, void* g, naRef key, naRef* out)
       {
         const std::string key_str = nasal::from_nasal<std::string>(c, key);
-        if( key_str == "parents" )
-        {
-          if( getSingletonPtr()->_parents.empty() )
-            return 0;
-
-          *out = getSingletonPtr()->getParents(c);
-          return "";
-        }
+        // TODO merge instance parents with static class parents
+//        if( key_str == "parents" )
+//        {
+//          if( getSingletonPtr()->_parents.empty() )
+//            return 0;
+//
+//          *out = getSingletonPtr()->getParents(c);
+//          return "";
+//        }
 
         typename MemberMap::iterator member =
           getSingletonPtr()->_members.find(key_str);