diff options
author | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:50 -0500 |
commit | 89fe5dab825a62a0e3fd8d248cbc91c65eb2a426 (patch) | |
tree | bcff14b7888d04a2fec799c59369f6095224bd08 /linden/indra/newview/lltoolselect.cpp | |
parent | Second Life viewer sources 1.13.3.2 (diff) | |
download | meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.zip meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.gz meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.bz2 meta-impy-89fe5dab825a62a0e3fd8d248cbc91c65eb2a426.tar.xz |
Second Life viewer sources 1.14.0.0
Diffstat (limited to 'linden/indra/newview/lltoolselect.cpp')
-rw-r--r-- | linden/indra/newview/lltoolselect.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/linden/indra/newview/lltoolselect.cpp b/linden/indra/newview/lltoolselect.cpp index a557136..924916c 100644 --- a/linden/indra/newview/lltoolselect.cpp +++ b/linden/indra/newview/lltoolselect.cpp | |||
@@ -93,7 +93,7 @@ BOOL LLToolSelect::handleDoubleClick(S32 x, S32 y, MASK mask) | |||
93 | } | 93 | } |
94 | 94 | ||
95 | // static | 95 | // static |
96 | void LLToolSelect::handleObjectSelection(LLViewerObject *object, MASK mask, BOOL ignore_group, BOOL temp_select) | 96 | LLHandle<LLObjectSelection> LLToolSelect::handleObjectSelection(LLViewerObject *object, MASK mask, BOOL ignore_group, BOOL temp_select) |
97 | { | 97 | { |
98 | BOOL select_owned = gSavedSettings.getBOOL("SelectOwnedOnly"); | 98 | BOOL select_owned = gSavedSettings.getBOOL("SelectOwnedOnly"); |
99 | BOOL select_movable = gSavedSettings.getBOOL("SelectMovableOnly"); | 99 | BOOL select_movable = gSavedSettings.getBOOL("SelectMovableOnly"); |
@@ -193,9 +193,10 @@ void LLToolSelect::handleObjectSelection(LLViewerObject *object, MASK mask, BOOL | |||
193 | if (!already_selected) | 193 | if (!already_selected) |
194 | { | 194 | { |
195 | LLViewerObject* root_object = (LLViewerObject*)object->getRootEdit(); | 195 | LLViewerObject* root_object = (LLViewerObject*)object->getRootEdit(); |
196 | LLObjectSelectionHandle selection = gSelectMgr->getSelection(); | ||
196 | 197 | ||
197 | // this is just a temporary selection | 198 | // this is just a temporary selection |
198 | LLSelectNode* select_node = gSelectMgr->findSelectNode(root_object); | 199 | LLSelectNode* select_node = selection->findNode(root_object); |
199 | if (select_node) | 200 | if (select_node) |
200 | { | 201 | { |
201 | select_node->setTransient(TRUE); | 202 | select_node->setTransient(TRUE); |
@@ -203,7 +204,7 @@ void LLToolSelect::handleObjectSelection(LLViewerObject *object, MASK mask, BOOL | |||
203 | 204 | ||
204 | for (S32 i = 0; i < (S32)root_object->mChildList.size(); i++) | 205 | for (S32 i = 0; i < (S32)root_object->mChildList.size(); i++) |
205 | { | 206 | { |
206 | select_node = gSelectMgr->findSelectNode(root_object->mChildList[i]); | 207 | select_node = selection->findNode(root_object->mChildList[i]); |
207 | if (select_node) | 208 | if (select_node) |
208 | { | 209 | { |
209 | select_node->setTransient(TRUE); | 210 | select_node->setTransient(TRUE); |
@@ -221,6 +222,8 @@ void LLToolSelect::handleObjectSelection(LLViewerObject *object, MASK mask, BOOL | |||
221 | gSavedSettings.setBOOL("SelectMovableOnly", select_movable); | 222 | gSavedSettings.setBOOL("SelectMovableOnly", select_movable); |
222 | gSelectMgr->setForceSelection(FALSE); | 223 | gSelectMgr->setForceSelection(FALSE); |
223 | } | 224 | } |
225 | |||
226 | return gSelectMgr->getSelection(); | ||
224 | } | 227 | } |
225 | 228 | ||
226 | BOOL LLToolSelect::handleMouseUp(S32 x, S32 y, MASK mask) | 229 | BOOL LLToolSelect::handleMouseUp(S32 x, S32 y, MASK mask) |