diff options
author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2010-07-21 15:28:28 -0400 |
---|---|---|
committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2010-07-21 15:28:28 -0400 |
commit | c3973a4895a5827a5a95dd15e99813bc32e11993 (patch) | |
tree | 4c06aa501b4500b2ef883664d1c6176ced05ee6b /indra/newview/llappearancemgr.cpp | |
parent | 842e5111ae2d0a83755ff902afa43dc84e45662b (diff) |
EXT-8135 FIX - use LLUpdateAppearanceOnDestroy callback to postpone appearance update until all links are created
Diffstat (limited to 'indra/newview/llappearancemgr.cpp')
-rw-r--r-- | indra/newview/llappearancemgr.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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<LLInventoryCallback> cb = new LLUpdateAppearanceOnDestroy; + + uuid_vec_t::const_iterator it; + for (it = ids.begin(); it != ids.end(); ++it) + { + LLAppearanceMgr::instance().wearItemOnAvatar(*it,false,replace,cb); + } +} + |