MAINT-1270 Fix for some flexi prims becoming flat at some LoDs

meow-7.2.2
Dave Parks 2012-07-16 17:27:52 -05:00
parent 509408f393
commit e3c5cf99f1
1 changed files with 3 additions and 2 deletions

View File

@ -368,10 +368,11 @@ void LLVolumeImplFlexible::doFlexibleUpdate()
LLPath *path = &volume->getPath();
if ((mSimulateRes == 0 || !mInitialized) && mVO->mDrawable->isVisible())
{
//mVO->markForUpdate(TRUE);
BOOL force_update = mSimulateRes == 0 ? TRUE : FALSE;
doIdleUpdate(gAgent, *LLWorld::getInstance(), 0.0);
if (mSimulateRes == 0)
if (!force_update || !gPipeline.hasRenderDebugFeatureMask(LLPipeline::RENDER_DEBUG_FEATURE_FLEXIBLE))
{
return; // we did not get updated or initialized, proceeding without can be dangerous
}