summaryrefslogtreecommitdiff
path: root/indra/newview/llagentcamera.cpp
diff options
context:
space:
mode:
authorAimee Linden <aimee@lindenlab.com>2010-06-21 13:35:55 +0100
committerAimee Linden <aimee@lindenlab.com>2010-06-21 13:35:55 +0100
commitc0129e4b11455a05a94300e1649cf3edaaf824aa (patch)
treeebe8bbc15a2c89078358d86519746fb81f616422 /indra/newview/llagentcamera.cpp
parent0622cd9e3605e0b18dd660a1b5cfe86581d693c5 (diff)
DEV-36437 FIXED (VWR-2485) Menu remains after switch to Mouselook
Ported from Snowglobe.
Diffstat (limited to 'indra/newview/llagentcamera.cpp')
-rw-r--r--indra/newview/llagentcamera.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp
index c6ca9c5e3a..9cf0a659c1 100644
--- a/indra/newview/llagentcamera.cpp
+++ b/indra/newview/llagentcamera.cpp
@@ -2084,6 +2084,9 @@ void LLAgentCamera::changeCameraToMouselook(BOOL animate)
// visibility changes at end of animation
gViewerWindow->getWindow()->resetBusyCount();
+ // Menus should not remain open on switching to mouselook...
+ LLMenuGL::sMenuContainer->hideMenus();
+
// unpause avatar animation
gAgent.unpauseAnimation();