aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltoolcomp.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:59 -0500
committerJacek Antonelli2008-08-15 23:44:59 -0500
commita408bac29378072fbf36864164149458c978cfcc (patch)
tree67feccf1a5d3816611ba48d6762f86f0f7f4b1f6 /linden/indra/newview/lltoolcomp.cpp
parentSecond Life viewer sources 1.17.0.12 (diff)
downloadmeta-impy-a408bac29378072fbf36864164149458c978cfcc.zip
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.gz
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.bz2
meta-impy-a408bac29378072fbf36864164149458c978cfcc.tar.xz
Second Life viewer sources 1.17.1.0
Diffstat (limited to 'linden/indra/newview/lltoolcomp.cpp')
-rw-r--r--linden/indra/newview/lltoolcomp.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/linden/indra/newview/lltoolcomp.cpp b/linden/indra/newview/lltoolcomp.cpp
index fd1152d..555f25e 100644
--- a/linden/indra/newview/lltoolcomp.cpp
+++ b/linden/indra/newview/lltoolcomp.cpp
@@ -121,7 +121,7 @@ BOOL LLToolComposite::isSelecting()
121 121
122void LLToolComposite::handleSelect() 122void LLToolComposite::handleSelect()
123{ 123{
124 if (gSavedSettings.getBOOL("SelectLinkedSet")) 124 if (!gSavedSettings.getBOOL("EditLinkedParts"))
125 { 125 {
126 gSelectMgr->promoteSelectionToRoot(); 126 gSelectMgr->promoteSelectionToRoot();
127 } 127 }
@@ -162,7 +162,7 @@ void LLToolCompInspect::pickCallback(S32 x, S32 y, MASK mask)
162 if (!gToolInspect->mMouseDown) 162 if (!gToolInspect->mMouseDown)
163 { 163 {
164 // fast click on object, but mouse is already up...just do select 164 // fast click on object, but mouse is already up...just do select
165 gToolInspect->mSelectRect->handleObjectSelection(hit_obj, mask, !gSavedSettings.getBOOL("SelectLinkedSet"), FALSE); 165 gToolInspect->mSelectRect->handleObjectSelection(hit_obj, mask, gSavedSettings.getBOOL("EditLinkedParts"), FALSE);
166 return; 166 return;
167 } 167 }
168 168
@@ -236,7 +236,7 @@ void LLToolCompTranslate::pickCallback(S32 x, S32 y, MASK mask)
236 if (!gToolTranslate->mMouseDown) 236 if (!gToolTranslate->mMouseDown)
237 { 237 {
238 // fast click on object, but mouse is already up...just do select 238 // fast click on object, but mouse is already up...just do select
239 gToolTranslate->mSelectRect->handleObjectSelection(hit_obj, mask, !gSavedSettings.getBOOL("SelectLinkedSet"), FALSE); 239 gToolTranslate->mSelectRect->handleObjectSelection(hit_obj, mask, gSavedSettings.getBOOL("EditLinkedParts"), FALSE);
240 return; 240 return;
241 } 241 }
242 242
@@ -250,7 +250,7 @@ void LLToolCompTranslate::pickCallback(S32 x, S32 y, MASK mask)
250 BOOL can_move = gToolTranslate->mManip->getSelection()->getObjectCount() != 0; 250 BOOL can_move = gToolTranslate->mManip->getSelection()->getObjectCount() != 0;
251 for (LLViewerObject* objectp = gToolTranslate->mManip->getSelection()->getFirstObject(); objectp; objectp = gToolTranslate->mManip->getSelection()->getNextObject()) 251 for (LLViewerObject* objectp = gToolTranslate->mManip->getSelection()->getFirstObject(); objectp; objectp = gToolTranslate->mManip->getSelection()->getNextObject())
252 { 252 {
253 can_move = can_move && objectp->permMove() && (objectp->permModify() || gSavedSettings.getBOOL("SelectLinkedSet")); 253 can_move = can_move && objectp->permMove() && (objectp->permModify() || !gSavedSettings.getBOOL("EditLinkedParts"));
254 } 254 }
255 255
256 if( LLManip::LL_NO_PART != gToolTranslate->mManip->getHighlightedPart() && can_move) 256 if( LLManip::LL_NO_PART != gToolTranslate->mManip->getHighlightedPart() && can_move)
@@ -364,7 +364,7 @@ void LLToolCompScale::pickCallback(S32 x, S32 y, MASK mask)
364 if (!gToolStretch->mMouseDown) 364 if (!gToolStretch->mMouseDown)
365 { 365 {
366 // fast click on object, but mouse is already up...just do select 366 // fast click on object, but mouse is already up...just do select
367 gToolStretch->mSelectRect->handleObjectSelection(hit_obj, mask, !gSavedSettings.getBOOL("SelectLinkedSet"), FALSE); 367 gToolStretch->mSelectRect->handleObjectSelection(hit_obj, mask, gSavedSettings.getBOOL("EditLinkedParts"), FALSE);
368 368
369 return; 369 return;
370 } 370 }
@@ -565,7 +565,7 @@ void LLToolCompRotate::pickCallback(S32 x, S32 y, MASK mask)
565 if (!gToolRotate->mMouseDown) 565 if (!gToolRotate->mMouseDown)
566 { 566 {
567 // fast click on object, but mouse is already up...just do select 567 // fast click on object, but mouse is already up...just do select
568 gToolRotate->mSelectRect->handleObjectSelection(hit_obj, mask, !gSavedSettings.getBOOL("SelectLinkedSet"), FALSE); 568 gToolRotate->mSelectRect->handleObjectSelection(hit_obj, mask, gSavedSettings.getBOOL("EditLinkedParts"), FALSE);
569 return; 569 return;
570 } 570 }
571 571