MAINT-675 Fix for DoF focal point being incorrect when alt-zooming on terrain.

meow-7.2.2
Dave Parks 2012-06-26 16:13:09 -05:00
parent 28ccf4190e
commit ba8ddcf241
1 changed files with 2 additions and 9 deletions

View File

@ -6769,15 +6769,8 @@ void LLPipeline::renderBloom(BOOL for_snapshot, F32 zoom_factor, int subfield)
}
else
{
LLViewerObject* obj = gAgentCamera.getFocusObject();
if (obj)
{ //focus on alt-zoom target
focus_point = LLVector3(gAgentCamera.getFocusGlobal()-gAgent.getRegion()->getOriginGlobal());
}
else
{ //focus on your avatar
focus_point = gAgent.getPositionAgent();
}
//focus on alt-zoom target
focus_point = LLVector3(gAgentCamera.getFocusGlobal()-gAgent.getRegion()->getOriginGlobal());
}
}