SL-20214 Crash at LLControlAVBridge::updateSpatialExtents
parent
147def0fdb
commit
3d2da2b2c0
|
|
@ -5114,8 +5114,6 @@ void LLControlAVBridge::updateSpatialExtents()
|
|||
{
|
||||
LL_PROFILE_ZONE_SCOPED_CATEGORY_DRAWABLE
|
||||
|
||||
LLControlAvatar* controlAvatar = getVObj()->getControlAvatar();
|
||||
|
||||
LLSpatialGroup* root = (LLSpatialGroup*)mOctree->getListener(0);
|
||||
|
||||
bool rootWasDirty = root->isDirty();
|
||||
|
|
@ -5126,7 +5124,11 @@ void LLControlAVBridge::updateSpatialExtents()
|
|||
// disappear when root goes off-screen"
|
||||
//
|
||||
// Expand extents to include Control Avatar placed outside of the bounds
|
||||
if (controlAvatar && (rootWasDirty || controlAvatar->mPlaying))
|
||||
LLControlAvatar* controlAvatar = getVObj() ? getVObj()->getControlAvatar() : NULL;
|
||||
if (controlAvatar
|
||||
&& controlAvatar->mDrawable
|
||||
&& controlAvatar->mDrawable->getEntry()
|
||||
&& (rootWasDirty || controlAvatar->mPlaying))
|
||||
{
|
||||
root->expandExtents(controlAvatar->mDrawable->getSpatialExtents(), *mDrawable->getXform());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue