Fix build error due to change in OSG API https://github.com/openscenegraph/VirtualPlanetBuilder/commit/b5aa52a84f7c9311468ddd921da27e25857141fa?w=1 --- src/vpb/BuildOptionsIO.cpp.orig +++ src/vpb/BuildOptionsIO.cpp @@ -538,7 +538,8 @@ static bool readLayerImageOptions( osgDB::InputStream& is, vpb::BuildOptions& bo unsigned int size = 0; is >> size >> IS_BEGIN_BRACKET; for ( unsigned int i=0; i( is.readObject() ); + osg::ref_ptr obj = is.readObject(); + vpb::ImageOptions* imageOptions = dynamic_cast( obj.get() ); if ( imageOptions ) bo.setLayerImageOptions( i, imageOptions ); } is >> IS_END_BRACKET;