Fixed handling of returns when invoking a script, removed some debug messages, added a warning message when detecting erronous types.

Added FocusBehaviour enum to osgGA::Widget serialization
This commit is contained in:
Robert Osfield
2014-02-07 16:06:57 +00:00
parent 6f5e5c23df
commit 8ad0ab1f6b
3 changed files with 18 additions and 14 deletions

View File

@@ -96,9 +96,6 @@ class ReaderWriterLua : public osgDB::ReaderWriter
if (objects.size()==1)
{
osg::Group* group = dynamic_cast<osg::Group*>(objects[0].get());
OSG_NOTICE<<"readObject form script, have one object "<<objects[0]->className()<<" "<<objects[0].get()<<std::endl;
if (group) OSG_NOTICE<<" group numChildren()="<<group->getNumChildren()<<std::endl;
return objects[0].get();
}