MAINT-8004 Make replace work regardless of current attachments
parent
ca8fe2f231
commit
3b9da6dc2f
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue