diff options
author | Nyx Linden <nyx@lindenlab.com> | 2013-02-25 18:19:08 -0500 |
---|---|---|
committer | Nyx Linden <nyx@lindenlab.com> | 2013-02-25 18:19:08 -0500 |
commit | 9233f08ddb8ecfffb56638533a4089f13ad7fb12 (patch) | |
tree | b5fcbd0e50ad33b1e05f4a446d7041f0acca8ce7 /indra/newview | |
parent | 6f11fb2588735c5f137de1c7f00a56d90f2f28a1 (diff) |
SH-3892 SH-3896 SUN-28 FIX add to outfit behaves like replace outfit
Conversion away from retry mechanism missed one case which was not supporting
the 'add' operation properly. Changed code to use linkAll instead, as it
did previously.
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llappearancemgr.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 10523ca998..23a908c0ff 100755 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -1814,17 +1814,13 @@ void LLAppearanceMgr::updateCOF(const LLUUID& category, bool append) all_items += gest_items; // Will link all the above items. - bool update_base_outfit_ordering = !append; - LLCallAfterInventoryLinkMgr *link_waiter = - new LLCallAfterInventoryLinkMgr(all_items,cof,"update_appearance_on_destroy", - boost::bind(&LLAppearanceMgr::updateAppearanceFromCOF, - LLAppearanceMgr::getInstance(), - update_base_outfit_ordering)); + LLPointer<LLInventoryCallback> link_waiter = new LLUpdateAppearanceOnDestroy; + linkAll(cof,all_items,link_waiter); // Add link to outfit if category is an outfit. if (!append) { - link_waiter->addItem(category); + createBaseOutfitLink(category, NULL); } // Remove current COF contents. Have to do this after creating |