FIRE-20280: Add clothing via double-click allows wearing more than one physics layer

meow-7.2.2
Ansariel 2016-10-28 22:24:12 +02:00
parent a164bc21cd
commit c8baa6e7d3
1 changed files with 1 additions and 1 deletions

View File

@ -6937,7 +6937,7 @@ void LLWearableBridge::openItem()
performAction(getInventoryModel(),
// <FS:Ansariel> 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"));
// </FS:Ansariel>
}