From c8baa6e7d35cecc323afb4b380ace357a1cc8bbf Mon Sep 17 00:00:00 2001 From: Ansariel Date: Fri, 28 Oct 2016 22:24:12 +0200 Subject: [PATCH] FIRE-20280: Add clothing via double-click allows wearing more than one physics layer --- indra/newview/llinventorybridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 0b6f4622d8..932dd6e7ce 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -6937,7 +6937,7 @@ void LLWearableBridge::openItem() performAction(getInventoryModel(), // FIRE-17166: Add Clothes on Double Click //get_is_item_worn(mUUID) ? "take_off" : "wear"); - get_is_item_worn(mUUID) ? "take_off" : (mAssetType == LLAssetType::AT_BODYPART || !gSavedSettings.getBOOL("FSDoubleClickAddInventoryClothing") ? "wear" : "wear_add")); + get_is_item_worn(mUUID) ? "take_off" : (mAssetType == LLAssetType::AT_BODYPART || (mAssetType == LLAssetType::AT_CLOTHING && mWearableType == LLWearableType::WT_PHYSICS) || !gSavedSettings.getBOOL("FSDoubleClickAddInventoryClothing") ? "wear" : "wear_add")); // }