From 001e45627b45677d9364e74faeb82d362da167cf Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Fri, 30 May 2014 06:38:13 -0400 Subject: [PATCH] Feature Request: Add an option to toggle Animating when going into Appearance Mode, option is in vanity->main preferences --- indra/newview/app_settings/settings.xml | 13 +++++++++++++ indra/newview/ascentprefsvan.cpp | 2 ++ indra/newview/ascentprefsvan.h | 1 + indra/newview/llagentcamera.cpp | 9 ++++++--- .../xui/en-us/panel_preferences_ascent_vanity.xml | 1 + 5 files changed, 23 insertions(+), 3 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 247ebaee8..3cdca67a0 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -689,6 +689,19 @@ 1.0 + LiruCustomizeAnim + + Comment + Whether or not to animate when going into appearance mode. + Persist + 1 + Type + Boolean + Value + 1 + IsCOA + 1 + LiruGridInTitle Comment diff --git a/indra/newview/ascentprefsvan.cpp b/indra/newview/ascentprefsvan.cpp index b746c0747..84a60ddeb 100644 --- a/indra/newview/ascentprefsvan.cpp +++ b/indra/newview/ascentprefsvan.cpp @@ -123,6 +123,7 @@ void LLPrefsAscentVan::refreshValues() mDisableChatAnimation = gSavedSettings.getBOOL("SGDisableChatAnimation"); mAddNotReplace = gSavedSettings.getBOOL("LiruAddNotReplace"); mTurnAround = gSavedSettings.getBOOL("TurnAroundWhenWalkingBackwards"); + mCustomizeAnim = gSavedSettings.getBOOL("LiruCustomizeAnim"); mAnnounceSnapshots = gSavedSettings.getBOOL("AnnounceSnapshots"); mAnnounceStreamMetadata = gSavedSettings.getBOOL("AnnounceStreamMetadata"); mUnfocusedFloatersOpaque = gSavedSettings.getBOOL("FloaterUnfocusedBackgroundOpaque"); @@ -196,6 +197,7 @@ void LLPrefsAscentVan::cancel() gSavedSettings.setBOOL("SGDisableChatAnimation", mDisableChatAnimation); gSavedSettings.setBOOL("LiruAddNotReplace", mAddNotReplace); gSavedSettings.setBOOL("TurnAroundWhenWalkingBackwards", mTurnAround); + gSavedSettings.setBOOL("LiruCustomizeAnim", mCustomizeAnim); gSavedSettings.setBOOL("AnnounceSnapshots", mAnnounceSnapshots); gSavedSettings.setBOOL("AnnounceStreamMetadata", mAnnounceStreamMetadata); gSavedSettings.setBOOL("FloaterUnfocusedBackgroundOpaque", mUnfocusedFloatersOpaque); diff --git a/indra/newview/ascentprefsvan.h b/indra/newview/ascentprefsvan.h index 9d5100559..2e7753d10 100644 --- a/indra/newview/ascentprefsvan.h +++ b/indra/newview/ascentprefsvan.h @@ -59,6 +59,7 @@ private: bool mDisableChatAnimation; bool mAddNotReplace; bool mTurnAround; + bool mCustomizeAnim; bool mAnnounceSnapshots; bool mAnnounceStreamMetadata; bool mUnfocusedFloatersOpaque; diff --git a/indra/newview/llagentcamera.cpp b/indra/newview/llagentcamera.cpp index 82b82c11e..16c7cd3fd 100644 --- a/indra/newview/llagentcamera.cpp +++ b/indra/newview/llagentcamera.cpp @@ -2447,9 +2447,12 @@ void LLAgentCamera::changeCameraToCustomizeAvatar() at.normalize(); gAgent.resetAxes(at); - gAgent.sendAnimationRequest(ANIM_AGENT_CUSTOMIZE, ANIM_REQUEST_START); - gAgent.setCustomAnim(TRUE); - gAgentAvatarp->startMotion(ANIM_AGENT_CUSTOMIZE); + if (gSavedSettings.getBOOL("LiruCustomizeAnim")) + { + gAgent.sendAnimationRequest(ANIM_AGENT_CUSTOMIZE, ANIM_REQUEST_START); + gAgent.setCustomAnim(TRUE); + gAgentAvatarp->startMotion(ANIM_AGENT_CUSTOMIZE); + } LLMotion* turn_motion = gAgentAvatarp->findMotion(ANIM_AGENT_CUSTOMIZE); if (turn_motion) diff --git a/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml b/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml index 783d8a9b9..0e1ce0f6d 100644 --- a/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml +++ b/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_vanity.xml @@ -8,6 +8,7 @@ +