diff options
author | Oz Linden <oz@lindenlab.com> | 2011-03-14 11:07:07 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-03-14 11:07:07 -0400 |
commit | a4f2c570dd42066f0e2738a0fd2de6c61c35b47b (patch) | |
tree | 8131c27f3329bb5677da695841cf917c434db74d /indra/newview/llagentwearables.cpp | |
parent | b7635b6112b7c7fd448aa4400bba2edbf15a5b0a (diff) | |
parent | 19e99a5c09274049d00f25b2d88ee6429747b084 (diff) |
update to latest 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. |