Fixed bug in vrml2_shape.cpp which resulted in segfaults. (used AND rather than OR in control statement)
This commit is contained in:
parent
c798f8b545
commit
d52d8867c8
|
@ -318,7 +318,7 @@ bool WRL2SHAPE::Read( WRLPROC& proc, WRL2BASE* aTopNode )
|
||||||
|
|
||||||
SGNODE* WRL2SHAPE::TranslateToSG( SGNODE* aParent, bool calcNormals )
|
SGNODE* WRL2SHAPE::TranslateToSG( SGNODE* aParent, bool calcNormals )
|
||||||
{
|
{
|
||||||
if( NULL == appearance && NULL == geometry )
|
if( NULL == appearance || NULL == geometry )
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
S3D::SGTYPES ptype = S3D::GetSGNodeType( aParent );
|
S3D::SGTYPES ptype = S3D::GetSGNodeType( aParent );
|
||||||
|
|
Loading…
Reference in New Issue