From: Thomas Geymayer Date: Mon, 5 May 2014 12:48:29 +0000 (+0200) Subject: cppbind: disable special handling of 'parents' for ghost. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f75d1cbcb1e8ae60729b9f49b38447c229c47497;p=simgear.git cppbind: disable special handling of 'parents' for ghost. --- diff --git a/simgear/nasal/cppbind/Ghost.hxx b/simgear/nasal/cppbind/Ghost.hxx index b3309e92..83496588 100644 --- a/simgear/nasal/cppbind/Ghost.hxx +++ b/simgear/nasal/cppbind/Ghost.hxx @@ -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(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);