summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorIgor Borovkov <iborovkov@productengine.com>2010-01-14 13:57:16 +0200
committerIgor Borovkov <iborovkov@productengine.com>2010-01-14 13:57:16 +0200
commita9f532b2ea07b31e01f258615c0c57c58449626a (patch)
treeb55ee03a4f35f94f48f8d9520df6ad95cc898116 /indra
parente727800829be2ecf236b726b1ec7693a3adad908 (diff)
fixed major bug EXT-4194 Escape key does not reset the camera FOV
--HG-- branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llagent.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 35b28d8ec0..5ea253709c 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -514,6 +514,8 @@ void LLAgent::resetView(BOOL reset_camera, BOOL change_camera)
}
setFocusOnAvatar(TRUE, ANIMATE);
+
+ mCameraFOVZoomFactor = 0.f;
}
mHUDTargetZoom = 1.f;
@@ -3584,7 +3586,7 @@ F32 LLAgent::calcCameraFOVZoomFactor()
{
return 0.f;
}
- else if (mFocusObject.notNull() && !mFocusObject->isAvatar())
+ else if (mFocusObject.notNull() && !mFocusObject->isAvatar() && !mFocusOnAvatar)
{
// don't FOV zoom on mostly transparent objects
LLVector3 focus_offset = mFocusObjectOffset;