Merge pull request #236 from DavidWyand-GG/HiddenMesh

Change ShapeBase to only test if available meshes
This commit is contained in:
David Wyand 2013-02-22 12:26:05 -08:00
commit 1eecbff2b7

View file

@ -2582,7 +2582,7 @@ void ShapeBase::_prepRenderImage( SceneRenderState *state,
return;
// We don't need to render if all the meshes are forced hidden.
if ( mMeshHidden.testAll() )
if ( mMeshHidden.getSize() > 0 && mMeshHidden.testAll() )
return;
// If we're rendering shadows don't render the mounted