diff options
author | Mark Palange (Mani) <palange@lindenlab.com> | 2011-01-21 15:55:31 -0800 |
---|---|---|
committer | Mark Palange (Mani) <palange@lindenlab.com> | 2011-01-21 15:55:31 -0800 |
commit | 1e9111466bb8a77fc8054ca3d458a6692579fd3e (patch) | |
tree | 16b3642ca58b29e5037aa9563fba84179df9ceb5 /indra/newview/llappearancemgr.cpp | |
parent | dd3607cba651439fb1f73e78df38a160a2ef4f5c (diff) | |
parent | 45e25e83cf7457f495b051b9f7683ee299547290 (diff) |
Merge
Diffstat (limited to 'indra/newview/llappearancemgr.cpp')
-rw-r--r-- | indra/newview/llappearancemgr.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 80734b0d41..f40fed5ad3 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -1300,8 +1300,16 @@ bool LLAppearanceMgr::getCanReplaceCOF(const LLUUID& outfit_cat_id) return false; } - // Check whether the outfit contains the full set of body parts (shape+skin+hair+eyes). - return getCanMakeFolderIntoOutfit(outfit_cat_id); + // Check whether the outfit contains any wearables we aren't wearing already (STORM-702). + LLInventoryModel::cat_array_t cats; + LLInventoryModel::item_array_t items; + LLFindWearablesEx is_worn(/*is_worn=*/ false, /*include_body_parts=*/ true); + gInventory.collectDescendentsIf(outfit_cat_id, + cats, + items, + LLInventoryModel::EXCLUDE_TRASH, + is_worn); + return items.size() > 0; } void LLAppearanceMgr::purgeBaseOutfitLink(const LLUUID& category) |