From 8169cde890f70320340a08cbfa29d16033572a9b Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Tue, 3 Mar 2015 17:08:34 -0500 Subject: MAINT-4653 WIP --- indra/newview/llattachmentsmgr.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'indra/newview/llattachmentsmgr.cpp') 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 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(); } -- cgit v1.2.3