Back to LL's flexi handling since they fixed updating their own way.

This commit is contained in:
Shyotl
2011-06-16 22:50:04 -05:00
parent ed51cdfb57
commit 24e2e7f0d3

View File

@@ -366,10 +366,8 @@ void LLVolumeImplFlexible::doFlexibleUpdate()
{
LLVolume* volume = mVO->getVolume();
LLPath *path = &volume->getPath();
if ((mSimulateRes == 0 || !mInitialized)) // if its uninitialized but not visible, what then? - Nyx
if ((mSimulateRes == 0 || !mInitialized) && mVO->mDrawable->isVisible())
{
//if(mInitialized && !mVO->mDrawable->isVisible())
// return; //avoiding the assert below...
mVO->markForUpdate(TRUE);
if (!doIdleUpdate(gAgent, *LLWorld::getInstance(), 0.0))
{
@@ -377,7 +375,11 @@ void LLVolumeImplFlexible::doFlexibleUpdate()
}
}
llassert_always(mInitialized);
if(!mInitialized)
{
//the object is not visible
return ;
}
S32 num_sections = 1 << mSimulateRes;