diff options
| author | Vadim ProductEngine <vsavchuk@productengine.com> | 2010-11-22 16:09:33 +0200 | 
|---|---|---|
| committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2010-11-22 16:09:33 +0200 | 
| commit | 90f496b3028241afb62ab6db3cdf4dc8ef3abe0e (patch) | |
| tree | c32aea6eddc778c96fd0c36167b0db602681978b /indra/newview | |
| parent | abf406e3d5f957d66618afaf02f54d0d686bda67 (diff) | |
STORM-461 FIXED Hide sidebar tab buttons in mouselook mode.
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llagent.cpp | 7 | ||||
| -rw-r--r-- | indra/newview/llsidetray.cpp | 3 | 
2 files changed, 2 insertions, 8 deletions
| diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp index 3a45c79ec3..001a6a8851 100644 --- a/indra/newview/llagent.cpp +++ b/indra/newview/llagent.cpp @@ -56,7 +56,6 @@  #include "llparcel.h"  #include "llrendersphere.h"  #include "llsdutil.h" -#include "llsidetray.h"  #include "llsky.h"  #include "llsmoothstep.h"  #include "llstartup.h" @@ -1727,9 +1726,6 @@ void LLAgent::endAnimationUpdateUI()  		LLBottomTray::getInstance()->onMouselookModeOut(); -		LLSideTray::getInstance()->getButtonsPanel()->setVisible(TRUE); -		LLSideTray::getInstance()->updateSidetrayVisibility(); -  		LLPanelStandStopFlying::getInstance()->setVisible(TRUE);  		LLToolMgr::getInstance()->setCurrentToolset(gBasicToolset); @@ -1829,9 +1825,6 @@ void LLAgent::endAnimationUpdateUI()  		LLBottomTray::getInstance()->onMouselookModeIn(); -		LLSideTray::getInstance()->getButtonsPanel()->setVisible(FALSE); -		LLSideTray::getInstance()->updateSidetrayVisibility(); -  		LLPanelStandStopFlying::getInstance()->setVisible(FALSE);  		// clear out camera lag effect diff --git a/indra/newview/llsidetray.cpp b/indra/newview/llsidetray.cpp index 81b2fc0ae0..a4f855f279 100644 --- a/indra/newview/llsidetray.cpp +++ b/indra/newview/llsidetray.cpp @@ -1028,7 +1028,8 @@ void LLSideTray::arrange()  	}  	// The tab buttons should be shown only if there is at least one non-detached tab. -	mButtonsPanel->setVisible(hasTabs()); +	// Also hide them in mouse-look mode. +	mButtonsPanel->setVisible(hasTabs() && !gAgentCamera.cameraMouselook());  }  // Detach those tabs that were detached when the viewer exited last time. | 
