MAINT-6718 Can't Wear - Replace current outfits.

meow-7.2.2
Mnikolenko Productengine 2016-09-13 13:02:20 +03:00
parent 50ed0db1ff
commit 07cc376831
1 changed files with 3 additions and 3 deletions

View File

@ -1875,15 +1875,15 @@ bool LLAppearanceMgr::getCanReplaceCOF(const LLUUID& outfit_cat_id)
return false;
}
// Check whether the outfit contains any wearables we aren't wearing already (STORM-702).
// Check whether the outfit contains any wearables
LLInventoryModel::cat_array_t cats;
LLInventoryModel::item_array_t items;
LLFindWearablesEx is_worn(/*is_worn=*/ false, /*include_body_parts=*/ true);
LLFindWearables is_wearable;
gInventory.collectDescendentsIf(outfit_cat_id,
cats,
items,
LLInventoryModel::EXCLUDE_TRASH,
is_worn);
is_wearable);
return items.size() > 0;
}