diff options
Diffstat (limited to 'linden/indra/newview/lltoolcomp.cpp')
-rw-r--r-- | linden/indra/newview/lltoolcomp.cpp | 22 |
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 | ||
59 | const S32 BUTTON_HEIGHT = 16; | 60 | const S32 BUTTON_HEIGHT = 16; |
60 | const S32 BUTTON_WIDTH_SMALL = 32; | 61 | const S32 BUTTON_WIDTH_SMALL = 32; |
@@ -278,7 +279,12 @@ BOOL LLToolCompTranslate::handleMouseUp(S32 x, S32 y, MASK mask) | |||
278 | 279 | ||
279 | LLTool* LLToolCompTranslate::getOverrideTool(MASK mask) | 280 | LLTool* 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 | ||
398 | LLTool* LLToolCompScale::getOverrideTool(MASK mask) | 404 | LLTool* 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 | ||
598 | LLTool* LLToolCompRotate::getOverrideTool(MASK mask) | 609 | LLTool* 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 | } |