diff options
author | Dave Parks <davep@lindenlab.com> | 2022-12-12 13:36:36 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-12-12 13:36:36 -0600 |
commit | 1915b7a008a171e9b193f6301e83b61ca0f3c433 (patch) | |
tree | c835509ccf4559da14bf9074b45d66dded12952f | |
parent | e3b34fec6962e6deda3dd9dd83bf9fa20ab594af (diff) |
SL-18811 Fix for reflection probes associated with an object not immediately being removed when the object is killed.
-rw-r--r-- | indra/newview/llviewerobject.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index 2e76103773..e8e7b0b11e 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -520,6 +520,12 @@ void LLViewerObject::markDead() LLFollowCamMgr::getInstance()->removeFollowCamParams(mID); } + if (mReflectionProbe.notNull()) + { + mReflectionProbe->mViewerObject = nullptr; + mReflectionProbe = nullptr; + } + sNumZombieObjects++; } } |