SL-19220 Have manual sphere probes live-track their associated LLViewerObjects
parent
b4332012ab
commit
fa1d6066a1
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue