diff options
author | Oz Linden <oz@lindenlab.com> | 2011-04-01 12:12:22 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-04-01 12:12:22 -0400 |
commit | 9f4edab4dd93753d2f51e9776d758d5918992c08 (patch) | |
tree | 511a6b331e71876372a38a30b7a52d755cb04379 /indra/newview/llinventorybridge.cpp | |
parent | a03f6997d8c3519e2c89930a1ed03a787af6f7ae (diff) | |
parent | c5ae838ce3cd8521b7b4817f153560e03a8dcc32 (diff) |
pull latest changes from viewer-autobuild2010
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..622a5607df 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) > 0) + { + disabled_items.push_back(std::string("Wearable Add")); + } + } break; default: break; |