diff options
author | Oz Linden <oz@lindenlab.com> | 2011-04-10 22:40:57 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-04-10 22:40:57 -0400 |
commit | 0c05c8c89632d2747ca8b364ff663d1d5505fb4d (patch) | |
tree | 9f01f2c772212fcad555176a272265b5b4d67b09 /indra/newview/llinventorybridge.cpp | |
parent | dff83a1ba0592049ccdcd31177c183d62df65e85 (diff) | |
parent | ee9eef505279bf3983ec5fe4ce64ba3c38f0a76a (diff) |
merge changes for storm-1117
Diffstat (limited to 'indra/newview/llinventorybridge.cpp')
-rw-r--r-- | indra/newview/llinventorybridge.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llinventorybridge.cpp b/indra/newview/llinventorybridge.cpp index 4c2e0fa709..bdb9f6167a 100644 --- a/indra/newview/llinventorybridge.cpp +++ b/indra/newview/llinventorybridge.cpp @@ -4674,10 +4674,18 @@ void LLWearableBridge::buildContextMenu(LLMenuGL& menu, U32 flags) else { items.push_back(std::string("Wearable And Object Wear")); - items.push_back(std::string("Wearable Add")); disabled_items.push_back(std::string("Take Off")); disabled_items.push_back(std::string("Wearable Edit")); } + + if (LLWearableType::getAllowMultiwear(mWearableType)) + { + items.push_back(std::string("Wearable Add")); + if (gAgentWearables.getWearableCount(mWearableType) >= LLAgentWearables::MAX_CLOTHING_PER_TYPE) + { + disabled_items.push_back(std::string("Wearable Add")); + } + } break; default: break; |