Fixed bug in vrml2_shape.cpp which resulted in segfaults. (used AND rather than OR in control statement)

This commit is contained in:
Cirilo Bernardo 2016-01-04 20:24:40 +11:00
parent c798f8b545
commit d52d8867c8
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ bool WRL2SHAPE::Read( WRLPROC& proc, WRL2BASE* aTopNode )
SGNODE* WRL2SHAPE::TranslateToSG( SGNODE* aParent, bool calcNormals )
{
if( NULL == appearance && NULL == geometry )
if( NULL == appearance || NULL == geometry )
return NULL;
S3D::SGTYPES ptype = S3D::GetSGNodeType( aParent );