summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2015-03-03 17:08:34 -0500
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2015-03-03 17:08:34 -0500
commit8169cde890f70320340a08cbfa29d16033572a9b (patch)
tree34b9b30dfa010bb6a0b241c1d029d8e0ef3c882f
parenta07127ee7caf4ccdd4137fbecf79b4650decb0c2 (diff)
MAINT-4653 WIP
-rwxr-xr-xindra/newview/llappearancemgr.cpp4
-rwxr-xr-xindra/newview/llattachmentsmgr.cpp7
2 files changed, 8 insertions, 3 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp
index f8c964cb9a..24169c152b 100755
--- a/indra/newview/llappearancemgr.cpp
+++ b/indra/newview/llappearancemgr.cpp
@@ -3948,13 +3948,13 @@ void LLAppearanceMgr::registerAttachment(const LLUUID& item_id)
void LLAppearanceMgr::unregisterAttachment(const LLUUID& item_id)
{
LLViewerInventoryItem *item = gInventory.getItem(item_id);
- LL_DEBUGS("Avatar") << "unregistering attachment "
+ LL_DEBUGS("Avatar") << "ATT unregistering attachment "
<< (item ? item->getName() : "UNKNOWN") << " " << item_id << LL_ENDL;
gInventory.addChangedMask(LLInventoryObserver::LABEL, item_id);
if (mAttachmentInvLinkEnabled)
{
- LL_DEBUGS("Avatar") << "removing COF link for attachment "
+ LL_DEBUGS("Avatar") << "ATT removing COF link for attachment "
<< (item ? item->getName() : "UNKNOWN") << " " << item_id << LL_ENDL;
LLAppearanceMgr::removeCOFItemLinks(item_id);
}
diff --git a/indra/newview/llattachmentsmgr.cpp b/indra/newview/llattachmentsmgr.cpp
index e64ed6563a..64dcaab6c0 100755
--- a/indra/newview/llattachmentsmgr.cpp
+++ b/indra/newview/llattachmentsmgr.cpp
@@ -111,10 +111,13 @@ private:
LLAttachmentsMgr::attachments_vec_t mToLinkAndAttach;
};
+//#define COF_LINK_FIRST
+
void LLAttachmentsMgr::linkPendingAttachments()
{
if (mPendingAttachments.size())
{
+#ifdef COF_LINK_FIRST
LLPointer<LLInventoryCallback> cb = new LLAttachAfterLinkCallback(mPendingAttachments);
LLInventoryObject::const_object_list_t inv_items_to_link;
LL_DEBUGS("Avatar") << "ATT requesting COF links for " << mPendingAttachments.size() << " object(s):" << LL_ENDL;
@@ -135,7 +138,9 @@ void LLAttachmentsMgr::linkPendingAttachments()
}
}
link_inventory_array(LLAppearanceMgr::instance().getCOF(), inv_items_to_link, cb);
-
+#else
+ requestAttachments(mPendingAttachments);
+#endif
mPendingAttachments.clear();
}