Speculative fixes.

This commit is contained in:
Shyotl
2020-02-29 22:15:27 -06:00
parent 25cb81221e
commit c340dde03d
3 changed files with 13 additions and 9 deletions

View File

@@ -1149,6 +1149,7 @@ LLSpatialPartition* LLDrawable::getSpatialPartition()
//must be an active volume
if (!mSpatialBridge)
{
// Spatial bridge ctors self-register...
if (mVObjp->isHUDAttachment())
{
setSpatialBridge(new LLHUDBridge(this, getRegion()));
@@ -1615,9 +1616,9 @@ void LLSpatialBridge::cleanupReferences()
}
}*/
LLDrawable* drawablep = mDrawable;
mDrawable = NULL;
drawablep->setSpatialBridge(NULL);
LLPointer<LLDrawable> drawablep = mDrawable;
mDrawable = nullptr;
drawablep->setSpatialBridge(nullptr);
}
}