diff options
author | McCabe Maxsted | 2009-09-14 17:52:41 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-14 17:52:41 -0700 |
commit | 7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd (patch) | |
tree | 0243666021de3ae6ac61a6c6f4e57d42771fe964 /linden/indra/newview/lloverlaybar.cpp | |
parent | Applied BlockClickSit debug setting from Emerald to block sit click action (diff) | |
download | meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.zip meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.gz meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.bz2 meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.xz |
Merged in jacek/next
Diffstat (limited to 'linden/indra/newview/lloverlaybar.cpp')
-rw-r--r-- | linden/indra/newview/lloverlaybar.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/linden/indra/newview/lloverlaybar.cpp b/linden/indra/newview/lloverlaybar.cpp index 6b51b3a..12c001e 100644 --- a/linden/indra/newview/lloverlaybar.cpp +++ b/linden/indra/newview/lloverlaybar.cpp | |||
@@ -266,7 +266,10 @@ void LLOverlayBar::refresh() | |||
266 | BOOL sitting = FALSE; | 266 | BOOL sitting = FALSE; |
267 | if (gAgent.getAvatarObject()) | 267 | if (gAgent.getAvatarObject()) |
268 | { | 268 | { |
269 | sitting = gAgent.getAvatarObject()->mIsSitting; | 269 | // sitting = gAgent.getAvatarObject()->mIsSitting; |
270 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
271 | sitting = gAgent.getAvatarObject()->mIsSitting && !gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT); | ||
272 | // [/RLVa:KB] | ||
270 | } | 273 | } |
271 | button = getChild<LLButton>("Stand Up"); | 274 | button = getChild<LLButton>("Stand Up"); |
272 | 275 | ||
@@ -349,6 +352,13 @@ void LLOverlayBar::onClickMouselook(void*) | |||
349 | //static | 352 | //static |
350 | void LLOverlayBar::onClickStandUp(void*) | 353 | void LLOverlayBar::onClickStandUp(void*) |
351 | { | 354 | { |
355 | // [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) | ||
356 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && (gAgent.getAvatarObject()) && (gAgent.getAvatarObject()->mIsSitting) ) | ||
357 | { | ||
358 | return; | ||
359 | } | ||
360 | // [/RLVa:KB] | ||
361 | |||
352 | LLSelectMgr::getInstance()->deselectAllForStandingUp(); | 362 | LLSelectMgr::getInstance()->deselectAllForStandingUp(); |
353 | gAgent.setControlFlags(AGENT_CONTROL_STAND_UP); | 363 | gAgent.setControlFlags(AGENT_CONTROL_STAND_UP); |
354 | } | 364 | } |