diff options
author | Monroe Linden <monroe@lindenlab.com> | 2010-06-04 14:30:54 -0700 |
---|---|---|
committer | Monroe Linden <monroe@lindenlab.com> | 2010-06-04 14:30:54 -0700 |
commit | 58f008dd1440af3082f0ed1e324cd03b7ee72d43 (patch) | |
tree | cd182d6a9b98e20972294bfed87fe94cf2eb0670 /indra | |
parent | 9dd68124d18ca9b2d9a252f392cc71cc24928cd5 (diff) |
Fix for EXT-7571 (Camera is left in object view mode after leaving "edit appearance" mode)
Call gAgentCamera.resetView() when exiting appearance/outfit editing mode.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llsidepanelappearance.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llsidepanelappearance.cpp b/indra/newview/llsidepanelappearance.cpp index b66789448f..872939c209 100644 --- a/indra/newview/llsidepanelappearance.cpp +++ b/indra/newview/llsidepanelappearance.cpp @@ -209,7 +209,7 @@ void LLSidepanelAppearance::onVisibilityChange(const LLSD &new_visibility) { if ((mOutfitEdit && mOutfitEdit->getVisible()) || (mEditWearable && mEditWearable->getVisible())) { - if (!gAgentCamera.cameraCustomizeAvatar()) + if (!gAgentCamera.cameraCustomizeAvatar() && gSavedSettings.getBOOL("AppearanceCameraMovement")) { gAgentCamera.changeCameraToCustomizeAvatar(); } @@ -217,9 +217,10 @@ void LLSidepanelAppearance::onVisibilityChange(const LLSD &new_visibility) } else { - if (gAgentCamera.cameraCustomizeAvatar()) + if (gAgentCamera.cameraCustomizeAvatar() && gSavedSettings.getBOOL("AppearanceCameraMovement")) { gAgentCamera.changeCameraToDefault(); + gAgentCamera.resetView(); } } } @@ -345,6 +346,7 @@ void LLSidepanelAppearance::toggleOutfitEditPanel(BOOL visible, BOOL disable_cam else if (!disable_camera_switch && gSavedSettings.getBOOL("AppearanceCameraMovement") ) { gAgentCamera.changeCameraToDefault(); + gAgentCamera.resetView(); } } @@ -384,6 +386,7 @@ void LLSidepanelAppearance::toggleWearableEditPanel(BOOL visible, LLWearable *we if (!disable_camera_switch && gSavedSettings.getBOOL("AppearanceCameraMovement") ) { gAgentCamera.changeCameraToDefault(); + gAgentCamera.resetView(); } } } |