summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatercamera.cpp
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2009-09-14 14:31:25 -0700
committerBryan O'Sullivan <bos@lindenlab.com>2009-09-14 14:31:25 -0700
commit562006aa5585a42418cae978516505035cd34d8d (patch)
treef42488d1b07907937f5b9e236617d9f02297d32d /indra/newview/llfloatercamera.cpp
parent9a8042d5a3edfd07727793a1939c3ab361ceec9a (diff)
parent7cd1020f2953b776e1878e7b4e365d4b23e6b07b (diff)
Merge with SVN viewer-2.0.0-3 branch
Diffstat (limited to 'indra/newview/llfloatercamera.cpp')
-rw-r--r--indra/newview/llfloatercamera.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/indra/newview/llfloatercamera.cpp b/indra/newview/llfloatercamera.cpp
index 94ea20893a..f4c4f38008 100644
--- a/indra/newview/llfloatercamera.cpp
+++ b/indra/newview/llfloatercamera.cpp
@@ -77,21 +77,11 @@ bool LLFloaterCamera::inAvatarViewMode()
return mCurrMode == CAMERA_CTRL_MODE_AVATAR_VIEW;
}
-void LLFloaterCamera::resetFreeCameraMode()
+void LLFloaterCamera::resetCameraMode()
{
- if (mCurrMode == CAMERA_CTRL_MODE_FREE_CAMERA)
- {
- /* Camera Tool can be deselected when we are mouse wheel scrolling into Mouse Look
- In such case we are unable to determine that we will be into Mouse Look view */
- if (mPrevMode == CAMERA_CTRL_MODE_AVATAR_VIEW)
- {
- setMode(CAMERA_CTRL_MODE_ORBIT);
- }
- else
- {
- setMode(mPrevMode);
- }
- }
+ LLFloaterCamera* floater_camera = LLFloaterCamera::findInstance();
+ if (!floater_camera) return;
+ floater_camera->switchMode(CAMERA_CTRL_MODE_ORBIT);
}
void LLFloaterCamera::update()