aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/lltooldraganddrop.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-11-07 16:21:26 -0700
committerMcCabe Maxsted2009-11-07 16:21:26 -0700
commit5a376379b6eeca8ecb709d5415ac130a1a99b4be (patch)
tree08da468b4bbf8025cf9da3cc2f2f12ff45d6ef00 /linden/indra/newview/lltooldraganddrop.cpp
parentChanged default UIScaleFactor to 1.002 as a workaround to some font rendering... (diff)
downloadmeta-impy-5a376379b6eeca8ecb709d5415ac130a1a99b4be.zip
meta-impy-5a376379b6eeca8ecb709d5415ac130a1a99b4be.tar.gz
meta-impy-5a376379b6eeca8ecb709d5415ac130a1a99b4be.tar.bz2
meta-impy-5a376379b6eeca8ecb709d5415ac130a1a99b4be.tar.xz
Applied RLVa-1.0.5e_20091107_Imprudence-1.2.0-diff.patch
Diffstat (limited to 'linden/indra/newview/lltooldraganddrop.cpp')
-rw-r--r--linden/indra/newview/lltooldraganddrop.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/linden/indra/newview/lltooldraganddrop.cpp b/linden/indra/newview/lltooldraganddrop.cpp
index 178bde6..c0fa28c 100644
--- a/linden/indra/newview/lltooldraganddrop.cpp
+++ b/linden/indra/newview/lltooldraganddrop.cpp
@@ -1946,7 +1946,7 @@ EAcceptance LLToolDragAndDrop::willObjectAcceptInventory(LLViewerObject* obj, LL
1946// [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c) 1946// [RLVa:KB] - Checked: 2009-07-06 (RLVa-1.0.0c)
1947 if (rlv_handler_t::isEnabled()) 1947 if (rlv_handler_t::isEnabled())
1948 { 1948 {
1949 if (!gRlvHandler.isDetachable(obj)) 1949 if (gRlvHandler.isLockedAttachment(obj, RLV_LOCK_REMOVE))
1950 { 1950 {
1951 return ACCEPT_NO_LOCKED; // Disallow inventory drops on a locked attachment 1951 return ACCEPT_NO_LOCKED; // Disallow inventory drops on a locked attachment
1952 } 1952 }
@@ -2014,10 +2014,12 @@ EAcceptance LLToolDragAndDrop::dad3dRezAttachmentFromInv(
2014 return ACCEPT_NO; 2014 return ACCEPT_NO;
2015 } 2015 }
2016 2016
2017// [RLVa:KB] - Checked: 2009-09-08 (RLVa-1.0.2c) | Modified: RLVa-1.0.2c 2017// [RLVa:KB] - Checked: 2009-10-10 (RLVa-1.0.5) | Modified: RLVa-1.0.5
2018 LLViewerJointAttachment* pAttachPt = NULL; 2018 LLViewerJointAttachment* pAttachPt = NULL;
2019 if ( (rlv_handler_t::isEnabled()) && (gRlvHandler.hasLockedAttachment()) && (!RlvSettings::getEnableWear()) && 2019 if ( (rlv_handler_t::isEnabled()) && (gRlvHandler.hasLockedAttachment(RLV_LOCK_ANY)) && (!RlvSettings::getEnableWear()) &&
2020 ( ((pAttachPt = gRlvHandler.getAttachPoint(item, true)) == NULL) || (!gRlvHandler.isDetachable(pAttachPt)) ) ) 2020 ( ((pAttachPt = gRlvHandler.getAttachPoint(item, true)) == NULL) || // Item should specify an attachpt that
2021 (gRlvHandler.isLockedAttachment(pAttachPt->getObject(), RLV_LOCK_REMOVE)) || // doesn't have an undetachable object
2022 (gRlvHandler.isLockedAttachment(pAttachPt, RLV_LOCK_ADD)) ) ) // and that is attachable
2021 { 2023 {
2022 return ACCEPT_NO_LOCKED; 2024 return ACCEPT_NO_LOCKED;
2023 } 2025 }