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/llagentwearables.cpp | |
parent | a03f6997d8c3519e2c89930a1ed03a787af6f7ae (diff) | |
parent | c5ae838ce3cd8521b7b4817f153560e03a8dcc32 (diff) |
pull latest changes from viewer-autobuild2010
Diffstat (limited to 'indra/newview/llagentwearables.cpp')
-rw-r--r-- | indra/newview/llagentwearables.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp index 055be4cae2..d426afb17c 100644 --- a/indra/newview/llagentwearables.cpp +++ b/indra/newview/llagentwearables.cpp @@ -821,7 +821,7 @@ void LLAgentWearables::popWearable(const LLWearableType::EType type, U32 index) } } -U32 LLAgentWearables::getWearableIndex(LLWearable *wearable) +U32 LLAgentWearables::getWearableIndex(const LLWearable *wearable) const { if (wearable == NULL) { @@ -2045,8 +2045,9 @@ void LLAgentWearables::editWearable(const LLUUID& item_id) return; } + const BOOL disable_camera_switch = LLWearableType::getDisableCameraSwitch(wearable->getType()); LLPanel* panel = LLSideTray::getInstance()->getPanel("sidepanel_appearance"); - LLSidepanelAppearance::editWearable(wearable, panel); + LLSidepanelAppearance::editWearable(wearable, panel, disable_camera_switch); } // Request editing the item after it gets worn. |