diff options
Diffstat (limited to 'linden/indra/newview/qtoolalign.cpp')
-rw-r--r-- | linden/indra/newview/qtoolalign.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/linden/indra/newview/qtoolalign.cpp b/linden/indra/newview/qtoolalign.cpp index cb32d0d..b4944fe 100644 --- a/linden/indra/newview/qtoolalign.cpp +++ b/linden/indra/newview/qtoolalign.cpp | |||
@@ -36,7 +36,7 @@ const F32 MANIPULATOR_SELECT_SIZE = 20.0; | |||
36 | 36 | ||
37 | 37 | ||
38 | QToolAlign::QToolAlign() | 38 | QToolAlign::QToolAlign() |
39 | : LLTool(std::string("Align")) | 39 | : LLToolComposite(std::string("Align")) |
40 | { | 40 | { |
41 | } | 41 | } |
42 | 42 | ||
@@ -61,6 +61,11 @@ BOOL QToolAlign::handleMouseDown(S32 x, S32 y, MASK mask) | |||
61 | } | 61 | } |
62 | 62 | ||
63 | 63 | ||
64 | BOOL QToolAlign::handleDoubleClick(S32 x, S32 y, MASK mask) | ||
65 | { | ||
66 | return TRUE; | ||
67 | } | ||
68 | |||
64 | 69 | ||
65 | void QToolAlign::pickCallback(const LLPickInfo& pick_info) | 70 | void QToolAlign::pickCallback(const LLPickInfo& pick_info) |
66 | { | 71 | { |
@@ -94,7 +99,7 @@ void QToolAlign::pickCallback(const LLPickInfo& pick_info) | |||
94 | } | 99 | } |
95 | else | 100 | else |
96 | { | 101 | { |
97 | if (!(pick_info.mKeyMask == MASK_SHIFT)) | 102 | if (!(pick_info.mKeyMask & MASK_SHIFT)) |
98 | { | 103 | { |
99 | LLSelectMgr::getInstance()->deselectAll(); | 104 | LLSelectMgr::getInstance()->deselectAll(); |
100 | } | 105 | } |