From c3973a4895a5827a5a95dd15e99813bc32e11993 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Wed, 21 Jul 2010 15:28:28 -0400 Subject: EXT-8135 FIX - use LLUpdateAppearanceOnDestroy callback to postpone appearance update until all links are created --- indra/newview/llappearancemgr.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'indra/newview/llappearancemgr.cpp') diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index d2449abf08..d6ac6e1e5e 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -2726,3 +2726,15 @@ BOOL LLAppearanceMgr::getIsProtectedCOFItem(const LLUUID& obj_id) const return FALSE; */ } + +void wear_multiple(const uuid_vec_t& ids, bool replace) +{ + LLPointer cb = new LLUpdateAppearanceOnDestroy; + + uuid_vec_t::const_iterator it; + for (it = ids.begin(); it != ids.end(); ++it) + { + LLAppearanceMgr::instance().wearItemOnAvatar(*it,false,replace,cb); + } +} + -- cgit v1.2.3