DRTVWR-559 Fix for manual probes not updating as often as they should when nearby (bad distance calculation)
parent
8d17467f7f
commit
ca47c7ff44
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue