diff options
author | Dave Parks <davep@lindenlab.com> | 2023-02-15 12:06:57 -0600 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2023-02-15 12:06:57 -0600 |
commit | fa1d6066a11fae064ef577795c354b89beb352c3 (patch) | |
tree | 0c90cd00281920b9739f2c78574820f43bf39a6d /indra | |
parent | b4332012ab0c97785bcf8aa283aa7e2b1a052f86 (diff) |
SL-19220 Have manual sphere probes live-track their associated LLViewerObjects
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llreflectionmapmanager.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llreflectionmapmanager.cpp b/indra/newview/llreflectionmapmanager.cpp index fd2906fa37..8f342fc0bb 100644 --- a/indra/newview/llreflectionmapmanager.cpp +++ b/indra/newview/llreflectionmapmanager.cpp @@ -799,8 +799,10 @@ void LLReflectionMapManager::updateUniforms() llassert(refmap->mCubeIndex >= 0); // should always be true, if not, getReflectionMaps is bugged { - //LL_PROFILE_ZONE_NAMED_CATEGORY_DISPLAY("rmmsu - refSphere"); - + if (refmap->mViewerObject) + { // have active manual probes live-track the object they're associated with + refmap->mOrigin.load3(refmap->mViewerObject->getPositionAgent().mV); + } modelview.affineTransform(refmap->mOrigin, oa); rpd.refSphere[count].set(oa.getF32ptr()); rpd.refSphere[count].mV[3] = refmap->mRadius; |