aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llselectmgr.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/llselectmgr.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/llselectmgr.cpp')
-rw-r--r--linden/indra/newview/llselectmgr.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/linden/indra/newview/llselectmgr.cpp b/linden/indra/newview/llselectmgr.cpp
index 5086432..e2be9fd 100644
--- a/linden/indra/newview/llselectmgr.cpp
+++ b/linden/indra/newview/llselectmgr.cpp
@@ -395,9 +395,9 @@ LLObjectSelectionHandle LLSelectMgr::selectObjectAndFamily(LLViewerObject* obj,
395 root->resetRot(); 395 root->resetRot();
396 396
397 // leave component mode 397 // leave component mode
398 if (!gSavedSettings.getBOOL("SelectLinkedSet")) 398 if (gSavedSettings.getBOOL("EditLinkedParts"))
399 { 399 {
400 gSavedSettings.setBOOL("SelectLinkedSet", TRUE); 400 gSavedSettings.setBOOL("EditLinkedParts", FALSE);
401 promoteSelectionToRoot(); 401 promoteSelectionToRoot();
402 } 402 }
403 403
@@ -463,9 +463,9 @@ LLObjectSelectionHandle LLSelectMgr::selectObjectAndFamily(const LLDynamicArray<
463 } 463 }
464 464
465 // leave component mode 465 // leave component mode
466 if (!gSavedSettings.getBOOL("SelectLinkedSet")) 466 if (gSavedSettings.getBOOL("EditLinkedParts"))
467 { 467 {
468 gSavedSettings.setBOOL("SelectLinkedSet", TRUE); 468 gSavedSettings.setBOOL("EditLinkedParts", FALSE);
469 promoteSelectionToRoot(); 469 promoteSelectionToRoot();
470 } 470 }
471 471
@@ -948,7 +948,7 @@ LLObjectSelectionHandle LLSelectMgr::selectHighlightedObjects()
948 948
949void LLSelectMgr::deselectHighlightedObjects() 949void LLSelectMgr::deselectHighlightedObjects()
950{ 950{
951 BOOL select_linked_set = gSavedSettings.getBOOL("SelectLinkedSet"); 951 BOOL select_linked_set = !gSavedSettings.getBOOL("EditLinkedParts");
952 for (std::set<LLPointer<LLViewerObject> >::iterator iter = mRectSelectedObjects.begin(); 952 for (std::set<LLPointer<LLViewerObject> >::iterator iter = mRectSelectedObjects.begin();
953 iter != mRectSelectedObjects.end(); iter++) 953 iter != mRectSelectedObjects.end(); iter++)
954 { 954 {
@@ -3249,7 +3249,7 @@ void LLSelectMgr::sendMultipleUpdate(U32 type)
3249{ 3249{
3250 if (type == UPD_NONE) return; 3250 if (type == UPD_NONE) return;
3251 // send individual updates when selecting textures or individual objects 3251 // send individual updates when selecting textures or individual objects
3252 ESendType send_type = (gSavedSettings.getBOOL("SelectLinkedSet") && !getTEMode()) ? SEND_ONLY_ROOTS : SEND_ROOTS_FIRST; 3252 ESendType send_type = (!gSavedSettings.getBOOL("EditLinkedParts") && !getTEMode()) ? SEND_ONLY_ROOTS : SEND_ROOTS_FIRST;
3253 if (send_type == SEND_ONLY_ROOTS) 3253 if (send_type == SEND_ONLY_ROOTS)
3254 { 3254 {
3255 // tell simulator to apply to whole linked sets 3255 // tell simulator to apply to whole linked sets
@@ -4506,7 +4506,7 @@ void LLSelectMgr::processObjectPropertiesFamily(LLMessageSystem* msg, void** use
4506 LLString fullname(first_name); 4506 LLString fullname(first_name);
4507 fullname.append(" "); 4507 fullname.append(" ");
4508 fullname.append(last_name); 4508 fullname.append(last_name);
4509 reporterp->setPickedObjectProperties(name, fullname.c_str()); 4509 reporterp->setPickedObjectProperties(name, fullname.c_str(), owner_id);
4510 } 4510 }
4511 } 4511 }
4512 4512
@@ -4669,7 +4669,7 @@ void LLSelectMgr::updateSilhouettes()
4669 // persists from frame to frame to avoid regenerating object silhouettes 4669 // persists from frame to frame to avoid regenerating object silhouettes
4670 // mHighlightedObjects includes all siblings of rect selected objects 4670 // mHighlightedObjects includes all siblings of rect selected objects
4671 4671
4672 BOOL select_linked_set = gSavedSettings.getBOOL("SelectLinkedSet"); 4672 BOOL select_linked_set = !gSavedSettings.getBOOL("EditLinkedParts");
4673 4673
4674 // generate list of roots from current object selection 4674 // generate list of roots from current object selection
4675 for (std::set<LLPointer<LLViewerObject> >::iterator iter = mRectSelectedObjects.begin(); 4675 for (std::set<LLPointer<LLViewerObject> >::iterator iter = mRectSelectedObjects.begin();
@@ -5619,7 +5619,7 @@ BOOL LLSelectMgr::canUndo()
5619//----------------------------------------------------------------------------- 5619//-----------------------------------------------------------------------------
5620void LLSelectMgr::undo() 5620void LLSelectMgr::undo()
5621{ 5621{
5622 BOOL select_linked_set = gSavedSettings.getBOOL("SelectLinkedSet"); 5622 BOOL select_linked_set = !gSavedSettings.getBOOL("EditLinkedParts");
5623 LLUUID group_id(gAgent.getGroupID()); 5623 LLUUID group_id(gAgent.getGroupID());
5624 sendListToRegions("Undo", packAgentAndSessionAndGroupID, packObjectID, &group_id, select_linked_set ? SEND_ONLY_ROOTS : SEND_CHILDREN_FIRST); 5624 sendListToRegions("Undo", packAgentAndSessionAndGroupID, packObjectID, &group_id, select_linked_set ? SEND_ONLY_ROOTS : SEND_CHILDREN_FIRST);
5625} 5625}
@@ -5637,7 +5637,7 @@ BOOL LLSelectMgr::canRedo()
5637//----------------------------------------------------------------------------- 5637//-----------------------------------------------------------------------------
5638void LLSelectMgr::redo() 5638void LLSelectMgr::redo()
5639{ 5639{
5640 BOOL select_linked_set = gSavedSettings.getBOOL("SelectLinkedSet"); 5640 BOOL select_linked_set = !gSavedSettings.getBOOL("EditLinkedParts");
5641 LLUUID group_id(gAgent.getGroupID()); 5641 LLUUID group_id(gAgent.getGroupID());
5642 sendListToRegions("Redo", packAgentAndSessionAndGroupID, packObjectID, &group_id, select_linked_set ? SEND_ONLY_ROOTS : SEND_CHILDREN_FIRST); 5642 sendListToRegions("Redo", packAgentAndSessionAndGroupID, packObjectID, &group_id, select_linked_set ? SEND_ONLY_ROOTS : SEND_CHILDREN_FIRST);
5643} 5643}
@@ -5814,7 +5814,7 @@ void LLObjectSelection::deleteAllNodes()
5814 5814
5815LLSelectNode* LLObjectSelection::findNode(LLViewerObject* objectp) 5815LLSelectNode* LLObjectSelection::findNode(LLViewerObject* objectp)
5816{ 5816{
5817 std::map<LLViewerObject*, LLSelectNode*>::iterator found_it = mSelectNodeMap.find(objectp); 5817 std::map<LLPointer<LLViewerObject>, LLSelectNode*>::iterator found_it = mSelectNodeMap.find(objectp);
5818 if (found_it != mSelectNodeMap.end()) 5818 if (found_it != mSelectNodeMap.end())
5819 { 5819 {
5820 return found_it->second; 5820 return found_it->second;