diff options
author | Don Kjer <don@lindenlab.com> | 2011-04-01 23:37:30 +0000 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2011-04-01 23:37:30 +0000 |
commit | d292053c04e6adfd48be0484dd5a8a07b48e0541 (patch) | |
tree | bb8814069df178e2bcae041f2c3e9b11338492db /indra/newview/llagentwearables.cpp | |
parent | f2bb81d17660054697ed984afc0e3f8d90f77eda (diff) | |
parent | 1664c9dc678f7aca9c2bbf38d28e00550e03c4dd (diff) |
Merge with viewer-development
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. |