aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/qtoolalign.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/qtoolalign.cpp')
-rw-r--r--linden/indra/newview/qtoolalign.cpp9
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
38QToolAlign::QToolAlign() 38QToolAlign::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
64BOOL QToolAlign::handleDoubleClick(S32 x, S32 y, MASK mask)
65{
66 return TRUE;
67}
68
64 69
65void QToolAlign::pickCallback(const LLPickInfo& pick_info) 70void 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 }