summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorRunitaiLinden <davep@lindenlab.com>2023-06-27 20:11:01 -0500
committerRunitaiLinden <davep@lindenlab.com>2023-06-27 20:11:01 -0500
commitca47c7ff44ed0f5f1582f3a3dc5a31fcb3454885 (patch)
tree5bc0962e64369155bca93a7fa808e0a4b88b38a4 /indra/newview
parent8d17467f7f70aa28d7ad012426ca59dc760bc43f (diff)
DRTVWR-559 Fix for manual probes not updating as often as they should when nearby (bad distance calculation)
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llreflectionmapmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llreflectionmapmanager.cpp b/indra/newview/llreflectionmapmanager.cpp
index 779fe8bfd9..bb0bb04797 100644
--- a/indra/newview/llreflectionmapmanager.cpp
+++ b/indra/newview/llreflectionmapmanager.cpp
@@ -253,6 +253,10 @@ void LLReflectionMapManager::update()
if (probe != mDefaultProbe)
{
+ if (probe->mViewerObject) //make sure probes track the viewer objects they are attached to
+ {
+ probe->mOrigin.load3(probe->mViewerObject->getPositionAgent().mV);
+ }
d.setSub(camera_pos, probe->mOrigin);
probe->mDistance = d.getLength3().getF32() - probe->mRadius;
}