diff options
author | RunitaiLinden <davep@lindenlab.com> | 2023-06-27 20:11:01 -0500 |
---|---|---|
committer | RunitaiLinden <davep@lindenlab.com> | 2023-06-27 20:11:01 -0500 |
commit | ca47c7ff44ed0f5f1582f3a3dc5a31fcb3454885 (patch) | |
tree | 5bc0962e64369155bca93a7fa808e0a4b88b38a4 /indra | |
parent | 8d17467f7f70aa28d7ad012426ca59dc760bc43f (diff) |
DRTVWR-559 Fix for manual probes not updating as often as they should when nearby (bad distance calculation)
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llreflectionmapmanager.cpp | 4 |
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; } |