summaryrefslogtreecommitdiff
path: root/indra/newview/llenvmanager.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2015-06-15 15:53:45 -0400
committerOz Linden <oz@lindenlab.com>2015-06-15 15:53:45 -0400
commit95fc2d48eced78b2aaa29b9e8b3f9410eed1ad8c (patch)
tree7748f0142e0ecbc91daa33c42a679799c4375d5e /indra/newview/llenvmanager.cpp
parent96d16928600dbf3666221a19575af9330840cfd5 (diff)
parente0f5ed29daa3b2803aaec60a77bde8df7df292ee (diff)
merge changes for 3.7.30-release
Diffstat (limited to 'indra/newview/llenvmanager.cpp')
-rwxr-xr-xindra/newview/llenvmanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llenvmanager.cpp b/indra/newview/llenvmanager.cpp
index 41d378fea1..a626ad1bff 100755
--- a/indra/newview/llenvmanager.cpp
+++ b/indra/newview/llenvmanager.cpp
@@ -303,7 +303,8 @@ void LLEnvManagerNew::loadUserPrefs()
mUserPrefs.mSkyPresetName = gSavedSettings.getString("SkyPresetName");
mUserPrefs.mDayCycleName = gSavedSettings.getString("DayCycleName");
- mUserPrefs.mUseRegionSettings = gSavedSettings.getBOOL("UseEnvironmentFromRegion");
+ bool use_region_settings = gSavedSettings.getBOOL("EnvironmentPersistAcrossLogin") ? gSavedSettings.getBOOL("UseEnvironmentFromRegion") : true;
+ mUserPrefs.mUseRegionSettings = use_region_settings;
mUserPrefs.mUseDayCycle = gSavedSettings.getBOOL("UseDayCycle");
if (mUserPrefs.mUseRegionSettings)