SL-18811 Fix for reflection probes associated with an object not immediately being removed when the object is killed.

master
Dave Parks 2022-12-12 13:36:36 -06:00
parent e3b34fec69
commit 1915b7a008
1 changed files with 6 additions and 0 deletions

View File

@ -520,6 +520,12 @@ void LLViewerObject::markDead()
LLFollowCamMgr::getInstance()->removeFollowCamParams(mID);
}
if (mReflectionProbe.notNull())
{
mReflectionProbe->mViewerObject = nullptr;
mReflectionProbe = nullptr;
}
sNumZombieObjects++;
}
}