Commit 5ab9e952 authored by NiranV's avatar NiranV

Fixed: Wearables and BOM layers not subject to the double-click default inventory action option.

parent 4121708c
......@@ -6827,8 +6827,23 @@ void LLWearableBridge::performAction(LLInventoryModel* model, std::string action
void LLWearableBridge::openItem()
{
performAction(getInventoryModel(),
get_is_item_worn(mUUID) ? "take_off" : "wear");
//BD - Double Click Action Preferences
// 0 - Wear Item
// 1 - Add Item
// 2 - Show Properties
S32 action = gSavedSettings.getS32("DoubleClickActionInventory");
if (action == 0)
{
performAction(getInventoryModel(), get_is_item_worn(mUUID) ? "take_off" : "wear");
}
else if (action == 1)
{
performAction(getInventoryModel(), get_is_item_worn(mUUID) ? "take_off" : "wear_add");
}
else
{
performAction(getInventoryModel(), "properties");
}
}
void LLWearableBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment