diff options
author | Don Kjer <don@lindenlab.com> | 2011-06-13 02:48:52 +0000 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2011-06-13 02:48:52 +0000 |
commit | 45c6dcbe87fbfc1351e4faa9ef3196a191b7dd69 (patch) | |
tree | 4fe43929cb518d67e8afbd227db3bc62e4d175e5 /indra/newview/llflexibleobject.cpp | |
parent | 694b0838bc80efc152e7ecda09ffdc7a944b7079 (diff) | |
parent | 12d9d1d3ef76518171ae87aae2467593218f8413 (diff) |
Merge
Diffstat (limited to 'indra/newview/llflexibleobject.cpp')
-rw-r--r-- | indra/newview/llflexibleobject.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llflexibleobject.cpp b/indra/newview/llflexibleobject.cpp index 3d1650d2f5..32a533570a 100644 --- a/indra/newview/llflexibleobject.cpp +++ b/indra/newview/llflexibleobject.cpp @@ -366,7 +366,7 @@ void LLVolumeImplFlexible::doFlexibleUpdate() LLFastTimer ftm(FTM_DO_FLEXIBLE_UPDATE); LLVolume* volume = mVO->getVolume(); LLPath *path = &volume->getPath(); - if ((mSimulateRes == 0 || !mInitialized) && mVO->mDrawable->isVisible()) // if its uninitialized but not visible, what then? - Nyx + if ((mSimulateRes == 0 || !mInitialized) && mVO->mDrawable->isVisible()) { mVO->markForUpdate(TRUE); if (!doIdleUpdate(gAgent, *LLWorld::getInstance(), 0.0)) @@ -375,7 +375,11 @@ void LLVolumeImplFlexible::doFlexibleUpdate() } } - llassert_always(mInitialized); + if(!mInitialized) + { + //the object is not visible + return ; + } S32 num_sections = 1 << mSimulateRes; |