aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolcomp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/lltoolcomp.cpp')
-rw-r--r--linden/indra/newview/lltoolcomp.cpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/linden/indra/newview/lltoolcomp.cpp b/linden/indra/newview/lltoolcomp.cpp
index 16e0136..7bf99f0 100644
--- a/linden/indra/newview/lltoolcomp.cpp
+++ b/linden/indra/newview/lltoolcomp.cpp
@@ -55,6 +55,7 @@
55#include "llagent.h" 55#include "llagent.h"
56#include "llfloatertools.h" 56#include "llfloatertools.h"
57#include "llviewercontrol.h" 57#include "llviewercontrol.h"
58#include "qtoolalign.h"
58 59
59const S32 BUTTON_HEIGHT = 16; 60const S32 BUTTON_HEIGHT = 16;
60const S32 BUTTON_WIDTH_SMALL = 32; 61const S32 BUTTON_WIDTH_SMALL = 32;
@@ -278,7 +279,12 @@ BOOL LLToolCompTranslate::handleMouseUp(S32 x, S32 y, MASK mask)
278 279
279LLTool* LLToolCompTranslate::getOverrideTool(MASK mask) 280LLTool* LLToolCompTranslate::getOverrideTool(MASK mask)
280{ 281{
281 if (mask == MASK_CONTROL) 282 if (gKeyboard->getKeyDown('A') &&
283 ((mask & MASK_CONTROL) || (mask == (MASK_CONTROL | MASK_SHIFT))))
284 {
285 return QToolAlign::getInstance();
286 }
287 else if (mask == MASK_CONTROL)
282 { 288 {
283 return LLToolCompRotate::getInstance(); 289 return LLToolCompRotate::getInstance();
284 } 290 }
@@ -397,7 +403,12 @@ BOOL LLToolCompScale::handleMouseUp(S32 x, S32 y, MASK mask)
397 403
398LLTool* LLToolCompScale::getOverrideTool(MASK mask) 404LLTool* LLToolCompScale::getOverrideTool(MASK mask)
399{ 405{
400 if (mask == MASK_CONTROL) 406 if (gKeyboard->getKeyDown('A') &&
407 ((mask & MASK_CONTROL) || (mask == (MASK_CONTROL | MASK_SHIFT))))
408 {
409 return QToolAlign::getInstance();
410 }
411 else if (mask == MASK_CONTROL)
401 { 412 {
402 return LLToolCompRotate::getInstance(); 413 return LLToolCompRotate::getInstance();
403 } 414 }
@@ -597,7 +608,12 @@ BOOL LLToolCompRotate::handleMouseUp(S32 x, S32 y, MASK mask)
597 608
598LLTool* LLToolCompRotate::getOverrideTool(MASK mask) 609LLTool* LLToolCompRotate::getOverrideTool(MASK mask)
599{ 610{
600 if (mask == (MASK_CONTROL | MASK_SHIFT)) 611 if (gKeyboard->getKeyDown('A') &&
612 ((mask & MASK_CONTROL) || (mask == (MASK_CONTROL | MASK_SHIFT))))
613 {
614 return QToolAlign::getInstance();
615 }
616 else if (mask == (MASK_CONTROL | MASK_SHIFT))
601 { 617 {
602 return LLToolCompScale::getInstance(); 618 return LLToolCompScale::getInstance();
603 } 619 }