diff options
author | Richard Linden <none@none> | 2010-08-12 10:12:52 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2010-08-12 10:12:52 -0700 |
commit | 41fe9750c82605ccfbaf8f9b0f08b9068de702d3 (patch) | |
tree | d0e6bbffa926edff4d70d87bbf030bf28cd6953a /indra/newview/llselectmgr.cpp | |
parent | 73f1f43b8bd9ae1c3bc7f96d652c30d772da113b (diff) | |
parent | 73952a37ed7a11331154f2f68050286722ec96da (diff) |
Automated merge with http://10.1.4.28:8000/
Diffstat (limited to 'indra/newview/llselectmgr.cpp')
-rw-r--r-- | indra/newview/llselectmgr.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 050b87bbe0..21f8485e90 100644 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -3615,7 +3615,7 @@ void LLSelectMgr::selectionSetObjectSaleInfo(const LLSaleInfo& sale_info) // Attachments //---------------------------------------------------------------------- -void LLSelectMgr::sendAttach(U8 attachment_point) +void LLSelectMgr::sendAttach(U8 attachment_point, bool replace) { LLViewerObject* attach_object = mSelectedObjects->getFirstRootObject(); @@ -3629,9 +3629,12 @@ void LLSelectMgr::sendAttach(U8 attachment_point) if (0 == attachment_point || get_if_there(gAgentAvatarp->mAttachmentPoints, (S32)attachment_point, (LLViewerJointAttachment*)NULL)) { - - if (gSavedSettings.getBOOL("MultipleAttachments")) + if (!replace || attachment_point != 0) + { + // If we know the attachment point then we got here by clicking an + // "Attach to..." context menu item, so we should add, not replace. attachment_point |= ATTACHMENT_ADD; + } sendListToRegions( "ObjectAttach", |