diff --git a/src/Demos/osgconv/orientationconverter.cpp b/src/Demos/osgconv/orientationconverter.cpp index 8293a007a..a59491435 100644 --- a/src/Demos/osgconv/orientationconverter.cpp +++ b/src/Demos/osgconv/orientationconverter.cpp @@ -34,6 +34,10 @@ void OrientationConverter::ConvertVisitor::apply( Geode &geode ) for( int i = 0; i < numdrawables; i++ ) { GeoSet *gset = dynamic_cast(geode.getDrawable(i)); + + if( gset == NULL ) + continue; + int numcoords = gset->getNumCoords(); Vec3 *vertex = gset->getCoords();