Moved osgDB::MethodObject from lua plugin into osgDB, added support for running methods via the osgDB::PropertyInterface class.
Updated lua plugin to use new osgDB::PropertyInterface to run methods. Added addChild/removeChild() etc to Group.cpp, and addDrawable/removeDrawable() etc. to Geode.cpp serializers.
This commit is contained in:
@@ -308,6 +308,13 @@ void ObjectWrapper::writeSchema( StringList& properties, TypeList& types )
|
||||
}
|
||||
}
|
||||
|
||||
void ObjectWrapper::addMethodObject(const std::string& methodName, MethodObject* mo)
|
||||
{
|
||||
OSG_NOTICE<<"Inserting MethodObject "<<methodName<<std::endl;
|
||||
_methodObjectMap.insert(MethodObjectMap::value_type(methodName, mo));
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// RegisterWrapperProxy
|
||||
|
||||
Reference in New Issue
Block a user