From 1915b7a008a171e9b193f6301e83b61ca0f3c433 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Mon, 12 Dec 2022 13:36:36 -0600 Subject: SL-18811 Fix for reflection probes associated with an object not immediately being removed when the object is killed. --- indra/newview/llviewerobject.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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++; } } -- cgit v1.2.3