MAINT-65 FIXED Disable "Edit" in context menu if wearable has status "no modify"

meow-7.2.2
maxim_productengine 2012-08-08 14:34:58 +03:00
parent d047042edc
commit 2e55692a68
1 changed files with 2 additions and 1 deletions

View File

@ -5598,7 +5598,8 @@ void LLWearableBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
items.push_back(std::string("Wearable Edit"));
if ((flags & FIRST_SELECTED_ITEM) == 0)
bool modifiable = !gAgentWearables.isWearableModifiable(item->getUUID());
if (((flags & FIRST_SELECTED_ITEM) == 0) || modifiable)
{
disabled_items.push_back(std::string("Wearable Edit"));
}