aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolselectrect.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/lltoolselectrect.cpp
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lltoolselectrect.cpp22
1 files changed, 15 insertions, 7 deletions
diff --git a/linden/indra/newview/lltoolselectrect.cpp b/linden/indra/newview/lltoolselectrect.cpp
index ceb0659..26d9756 100644
--- a/linden/indra/newview/lltoolselectrect.cpp
+++ b/linden/indra/newview/lltoolselectrect.cpp
@@ -78,18 +78,26 @@ void dialog_refresh_all(void);
78 78
79BOOL LLToolSelectRect::handleMouseDown(S32 x, S32 y, MASK mask) 79BOOL LLToolSelectRect::handleMouseDown(S32 x, S32 y, MASK mask)
80{ 80{
81 handlePick(gViewerWindow->pickImmediate(x, y, TRUE));
82
83 LLTool::handleMouseDown(x, y, mask);
84
85 return mPick.getObject().notNull();
86}
87
88void LLToolSelectRect::handlePick(const LLPickInfo& pick)
89{
90 mPick = pick;
91
81 // start dragging rectangle 92 // start dragging rectangle
82 setMouseCapture( TRUE ); 93 setMouseCapture( TRUE );
83 94
84 mDragStartX = x; 95 mDragStartX = pick.mMousePt.mX;
85 mDragStartY = y; 96 mDragStartY = pick.mMousePt.mY;
86 mDragEndX = x; 97 mDragEndX = pick.mMousePt.mX;
87 mDragEndY = y; 98 mDragEndY = pick.mMousePt.mY;
88 99
89 mMouseOutsideSlop = FALSE; 100 mMouseOutsideSlop = FALSE;
90
91 LLToolSelect::handleMouseDown(x, y, mask);
92 return TRUE;
93} 101}
94 102
95 103