Added support for osg::Image to the lua plugin.

This commit is contained in:
Robert Osfield
2014-03-06 10:27:26 +00:00
parent 076adcbd82
commit 9319350176
7 changed files with 547 additions and 21 deletions

View File

@@ -778,7 +778,7 @@ osg::Image* InputStream::readImage(bool readFromExternal)
if ( !image && _forceReadingImage ) image = new osg::Image;
}
image = static_cast<osg::Image*>( readObjectFields(className, id, image.get()) );
image = static_cast<osg::Image*>( readObjectFields("osg::Object", id, image.get()) );
if ( image.valid() )
{
image->setFileName( name );