DRTVWR-559 Fix for manual probes not updating as often as they should when nearby (bad distance calculation)

meow-7.2.2
RunitaiLinden 2023-06-27 20:11:01 -05:00
parent 8d17467f7f
commit ca47c7ff44
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}