diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-07-23 15:04:03 +0300 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-07-23 15:04:03 +0300 |
commit | 4ce796b31718d0fe66306de9ba2576513f543ec7 (patch) | |
tree | 683d1976fdd03fe61ec6d8962350df5b2a9ea58b /indra/newview/llappearancemgr.cpp | |
parent | 3ec027b3161422822858b94e2743b963296f6250 (diff) | |
parent | 77911533dc68731f50f40b18cd44e287df28f476 (diff) |
Merge from default branch
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llappearancemgr.cpp')
-rw-r--r-- | indra/newview/llappearancemgr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index d6ac6e1e5e..5e0d49ac12 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -2731,10 +2731,14 @@ void wear_multiple(const uuid_vec_t& ids, bool replace) { LLPointer<LLInventoryCallback> cb = new LLUpdateAppearanceOnDestroy; + bool first = true; uuid_vec_t::const_iterator it; for (it = ids.begin(); it != ids.end(); ++it) { - LLAppearanceMgr::instance().wearItemOnAvatar(*it,false,replace,cb); + // if replace is requested, the first item worn will replace the current top + // item, and others will be added. + LLAppearanceMgr::instance().wearItemOnAvatar(*it,false,first && replace,cb); + first = false; } } |