aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolindividual.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/lltoolindividual.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/linden/indra/newview/lltoolindividual.cpp b/linden/indra/newview/lltoolindividual.cpp
index 946a546..d7f7b12 100644
--- a/linden/indra/newview/lltoolindividual.cpp
+++ b/linden/indra/newview/lltoolindividual.cpp
@@ -49,7 +49,6 @@
49/// Globals 49/// Globals
50///---------------------------------------------------------------------------- 50///----------------------------------------------------------------------------
51 51
52LLToolIndividual* gToolIndividual = NULL;
53 52
54///---------------------------------------------------------------------------- 53///----------------------------------------------------------------------------
55/// Local function declarations, constants, enums, and typedefs 54/// Local function declarations, constants, enums, and typedefs
@@ -80,16 +79,16 @@ BOOL LLToolIndividual::handleMouseDown(S32 x, S32 y, MASK mask)
80void LLToolIndividual::pickCallback(S32 x, S32 y, MASK mask) 79void LLToolIndividual::pickCallback(S32 x, S32 y, MASK mask)
81{ 80{
82 LLViewerObject* obj = gViewerWindow->lastObjectHit(); 81 LLViewerObject* obj = gViewerWindow->lastObjectHit();
83 gSelectMgr->deselectAll(); 82 LLSelectMgr::getInstance()->deselectAll();
84 if(obj) 83 if(obj)
85 { 84 {
86 gSelectMgr->selectObjectOnly(obj); 85 LLSelectMgr::getInstance()->selectObjectOnly(obj);
87 } 86 }
88} 87}
89 88
90BOOL LLToolIndividual::handleDoubleClick(S32 x, S32 y, MASK mask) 89BOOL LLToolIndividual::handleDoubleClick(S32 x, S32 y, MASK mask)
91{ 90{
92 if(!gSelectMgr->getSelection()->isEmpty()) 91 if(!LLSelectMgr::getInstance()->getSelection()->isEmpty())
93 { 92 {
94 // You should already have an object selected from the mousedown. 93 // You should already have an object selected from the mousedown.
95 // If so, show its inventory. 94 // If so, show its inventory.
@@ -109,11 +108,11 @@ BOOL LLToolIndividual::handleDoubleClick(S32 x, S32 y, MASK mask)
109void LLToolIndividual::handleSelect() 108void LLToolIndividual::handleSelect()
110{ 109{
111 const BOOL children_ok = TRUE; 110 const BOOL children_ok = TRUE;
112 LLViewerObject* obj = gSelectMgr->getSelection()->getFirstRootObject(children_ok); 111 LLViewerObject* obj = LLSelectMgr::getInstance()->getSelection()->getFirstRootObject(children_ok);
113 gSelectMgr->deselectAll(); 112 LLSelectMgr::getInstance()->deselectAll();
114 if(obj) 113 if(obj)
115 { 114 {
116 gSelectMgr->selectObjectOnly(obj); 115 LLSelectMgr::getInstance()->selectObjectOnly(obj);
117 } 116 }
118} 117}
119 118