summaryrefslogtreecommitdiff
path: root/indra/newview/llreflectionmapmanager.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2023-02-15 14:47:33 -0600
committerDave Parks <davep@lindenlab.com>2023-02-15 14:47:33 -0600
commit74275f590e75fc8b1685b77a39529cc91ad084b9 (patch)
tree442cf43b5c0fcbffd169493a78cb9d5f07270a64 /indra/newview/llreflectionmapmanager.cpp
parentfa1d6066a11fae064ef577795c354b89beb352c3 (diff)
SL-18927 Warn *before* destroying content, not after. Followup from last commit -- immediately apply scale to sphere probes.
Diffstat (limited to 'indra/newview/llreflectionmapmanager.cpp')
-rw-r--r--indra/newview/llreflectionmapmanager.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llreflectionmapmanager.cpp b/indra/newview/llreflectionmapmanager.cpp
index 8f342fc0bb..4377f26633 100644
--- a/indra/newview/llreflectionmapmanager.cpp
+++ b/indra/newview/llreflectionmapmanager.cpp
@@ -802,6 +802,8 @@ void LLReflectionMapManager::updateUniforms()
if (refmap->mViewerObject)
{ // have active manual probes live-track the object they're associated with
refmap->mOrigin.load3(refmap->mViewerObject->getPositionAgent().mV);
+ refmap->mRadius = refmap->mViewerObject->getScale().mV[0] * 0.5f;
+
}
modelview.affineTransform(refmap->mOrigin, oa);
rpd.refSphere[count].set(oa.getF32ptr());