7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-18 18:29:17 +00:00

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

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 );