diff options
author | Nyx (Neal Orman) <nyx@lindenlab.com> | 2011-04-06 14:30:27 -0400 |
---|---|---|
committer | Nyx (Neal Orman) <nyx@lindenlab.com> | 2011-04-06 14:30:27 -0400 |
commit | dfff5a476c0cd280332157034311df0c3e011b11 (patch) | |
tree | fcf4aee3eea4c5df92e7813a66c59d4da7947e73 /indra | |
parent | ee3048285f33d63a53cc12d66230e8c8b50cda3c (diff) |
SH-1289 VWR-25421 VWR-25415 FIX multiwearable "add" option disabled in inventory view
Corrected the XUI menu logic that was causing the "add" right click option to be greyed out
for clothing pieces that are valid for multiwearables.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llinventorybridge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 622a5607df..bdb9f6167a 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -4681,7 +4681,7 @@ void LLWearableBridge::buildContextMenu(LLMenuGL& menu, U32 flags) if (LLWearableType::getAllowMultiwear(mWearableType)) { items.push_back(std::string("Wearable Add")); - if (gAgentWearables.getWearableCount(mWearableType) > 0) + if (gAgentWearables.getWearableCount(mWearableType) >= LLAgentWearables::MAX_CLOTHING_PER_TYPE) { disabled_items.push_back(std::string("Wearable Add")); } |