MAINT-8004 Make replace work regardless of current attachments

master
Andrey Kleshchev 2018-02-06 17:36:51 +00:00
parent ca8fe2f231
commit 3b9da6dc2f
2 changed files with 3 additions and 3 deletions

View File

@ -1919,7 +1919,7 @@ bool LLAppearanceMgr::getCanReplaceCOF(const LLUUID& outfit_cat_id)
}
// Check whether it's the base outfit.
if (outfit_cat_id.isNull() || outfit_cat_id == getBaseOutfitUUID())
if (outfit_cat_id.isNull())
{
return false;
}

View File

@ -1050,15 +1050,15 @@ bool LLOutfitContextMenu::onEnable(LLSD::String param)
bool LLOutfitContextMenu::onVisible(LLSD::String param)
{
LLUUID outfit_cat_id = mUUIDs.back();
bool is_worn = LLAppearanceMgr::instance().getBaseOutfitUUID() == outfit_cat_id;
if ("edit" == param)
{
bool is_worn = LLAppearanceMgr::instance().getBaseOutfitUUID() == outfit_cat_id;
return is_worn;
}
else if ("wear_replace" == param)
{
return !is_worn;
return true;
}
else if ("delete" == param)
{