From 16daa6850efd2968ac81d418c72ad1a609a830da Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Mon, 16 Nov 2015 23:36:26 -0500 Subject: [PATCH] Finish adding AutoPilot to preferences (my bad!) --- indra/newview/ascentprefssys.cpp | 2 ++ indra/newview/ascentprefssys.h | 1 + .../skins/default/xui/en-us/panel_preferences_ascent_system.xml | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/indra/newview/ascentprefssys.cpp b/indra/newview/ascentprefssys.cpp index 278084f6e..a2c577d0d 100644 --- a/indra/newview/ascentprefssys.cpp +++ b/indra/newview/ascentprefssys.cpp @@ -144,6 +144,7 @@ void LLPrefsAscentSys::refreshValues() { //General ----------------------------------------------------------------------------- mDoubleClickTeleport = gSavedSettings.getBOOL("DoubleClickTeleport"); + mDoubleClickAutoPilot = gSavedSettings.getBOOL("DoubleClickAutoPilot"); mResetCameraAfterTP = gSavedSettings.getBOOL("OptionRotateCamAfterLocalTP"); mOffsetTPByUserHeight = gSavedSettings.getBOOL("OptionOffsetTPByAgentHeight"); mClearBeaconAfterTeleport = gSavedSettings.getBOOL("ClearBeaconAfterTeleport"); @@ -293,6 +294,7 @@ void LLPrefsAscentSys::cancel() { //General ----------------------------------------------------------------------------- gSavedSettings.setBOOL("DoubleClickTeleport", mDoubleClickTeleport); + gSavedSettings.setBOOL("DoubleClickAutoPilot", mDoubleClickAutoPilot); gSavedSettings.setBOOL("OptionRotateCamAfterLocalTP", mResetCameraAfterTP); gSavedSettings.setBOOL("OptionOffsetTPByAgentHeight", mOffsetTPByUserHeight); gSavedSettings.setBOOL("ClearBeaconAfterTeleport", mClearBeaconAfterTeleport); diff --git a/indra/newview/ascentprefssys.h b/indra/newview/ascentprefssys.h index c23023447..ae7a07cab 100644 --- a/indra/newview/ascentprefssys.h +++ b/indra/newview/ascentprefssys.h @@ -54,6 +54,7 @@ protected: private: //General ----------------------------------------------------------------------------- bool mDoubleClickTeleport; + bool mDoubleClickAutoPilot; bool mResetCameraAfterTP; bool mOffsetTPByUserHeight; bool mClearBeaconAfterTeleport; diff --git a/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_system.xml b/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_system.xml index 475211660..84c37dd54 100644 --- a/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_system.xml +++ b/indra/newview/skins/default/xui/en-us/panel_preferences_ascent_system.xml @@ -6,7 +6,7 @@ - +