From 47787900a44cd50685011b3f549b907cc0d536f3 Mon Sep 17 00:00:00 2001 From: DavidWyand-GG Date: Fri, 22 Feb 2013 15:24:29 -0500 Subject: [PATCH] Change ShapeBase to only test if available meshes The ShapeBase class tests if all of its meshes are hidden and if so, then it doesn't render during that frame. However, if there are no meshes in the ShapeBase and only nodes then rendering is also skipped. Unfortunately, this also skips the rendering of any mounted images. This change allows for a mesh-less skeleton to render any mounted images. --- Engine/source/T3D/shapeBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/T3D/shapeBase.cpp b/Engine/source/T3D/shapeBase.cpp index 170a5c07a..598e3c26c 100644 --- a/Engine/source/T3D/shapeBase.cpp +++ b/Engine/source/T3D/shapeBase.cpp @@ -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