Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions Engine/source/T3D/shapeBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2430,13 +2430,15 @@ void ShapeBase::prepRenderImage( SceneRenderState *state )
//Lod preloading
void ShapeBase::PreLoadAllLOD(SceneRenderState *state)
{
for (S32 i = mShapeInstance->getSmallestVisibleDL(); i >= 0; i-- )
{
mShapeInstance->setCurrentDetail( i );
mShapeInstance->animate();
prepBatchRender( state, -1 );
calcClassRenderData();
}
if (!mShapeInstance)
return;
for (S32 i = mShapeInstance->getSmallestVisibleDL(); i >= 0; i-- )
{
mShapeInstance->setCurrentDetail( i );
mShapeInstance->animate();
prepBatchRender( state, -1 );
calcClassRenderData();
}
}
//End Lod preloading

Expand Down