Added Mr. Osfields dynamic_cast<> and test for validity test.
This commit is contained in:
parent
610358033f
commit
a57ab6d121
@ -34,6 +34,10 @@ void OrientationConverter::ConvertVisitor::apply( Geode &geode )
|
|||||||
for( int i = 0; i < numdrawables; i++ )
|
for( int i = 0; i < numdrawables; i++ )
|
||||||
{
|
{
|
||||||
GeoSet *gset = dynamic_cast<GeoSet *>(geode.getDrawable(i));
|
GeoSet *gset = dynamic_cast<GeoSet *>(geode.getDrawable(i));
|
||||||
|
|
||||||
|
if( gset == NULL )
|
||||||
|
continue;
|
||||||
|
|
||||||
int numcoords = gset->getNumCoords();
|
int numcoords = gset->getNumCoords();
|
||||||
Vec3 *vertex = gset->getCoords();
|
Vec3 *vertex = gset->getCoords();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user