Added Mr. Osfields dynamic_cast<> and test for validity test.

This commit is contained in:
Don BURNS 2001-10-13 09:48:37 +00:00
parent 610358033f
commit a57ab6d121

View File

@ -34,6 +34,10 @@ void OrientationConverter::ConvertVisitor::apply( Geode &geode )
for( int i = 0; i < numdrawables; i++ )
{
GeoSet *gset = dynamic_cast<GeoSet *>(geode.getDrawable(i));
if( gset == NULL )
continue;
int numcoords = gset->getNumCoords();
Vec3 *vertex = gset->getCoords();