From da5c9c0ae9ca3fa1eb1430ab48e49491a8524dd7 Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Thu, 24 Sep 2009 14:01:21 -0700 Subject: Applied RLVa patch for Imprudence 1.2 by Kitty Barnett --- linden/indra/newview/llinventorybridge.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'linden/indra/newview/llinventorybridge.cpp') diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp index 19a5ade..618c4f9 100644 --- a/linden/indra/newview/llinventorybridge.cpp +++ b/linden/indra/newview/llinventorybridge.cpp @@ -4241,7 +4241,15 @@ void wear_attachments_on_avatar(const std::set& item_ids, BOOL remove) { if ( (gInventory.isObjectDescendentOf(*it, gAgent.getInventoryRootID())) ) { - items.put(item); +// items.put(item); +// [RLVa:KB] - Checked: 2009-09-11 (RLVa-1.0.2c) | Modified: RLVa-1.0.2c + LLViewerJointAttachment* pAttachPt = NULL; + if ( (!rlv_handler_t::isEnabled()) || (RlvSettings::getEnableWear()) || (!gRlvHandler.hasLockedAttachment()) || + (((pAttachPt = gRlvHandler.getAttachPoint(item, true)) != NULL) && (gRlvHandler.isDetachable(pAttachPt->getObject()))) ) + { + items.put(item); + } +// [/RLVa:KB] } else if ( (item->isComplete()) ) { -- cgit v1.1