diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2019-05-28 18:06:08 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2019-05-28 18:06:08 +0300 |
commit | fdf0d49614b820ffa85d2aa9258e4592bc0e45f3 (patch) | |
tree | 4b99bbed2cbb9e9dd2acced4e4c889090e37c9ac /indra/newview/llfloaterenvironmentadjust.cpp | |
parent | 9f2fc2b433f1c67b85786467ab17ff0b662b90f7 (diff) |
SL-11279 [EEP] Automatically toggle the beacon checkboxes
Diffstat (limited to 'indra/newview/llfloaterenvironmentadjust.cpp')
-rw-r--r-- | indra/newview/llfloaterenvironmentadjust.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llfloaterenvironmentadjust.cpp b/indra/newview/llfloaterenvironmentadjust.cpp index 3d19d560d6..4eb5e03603 100644 --- a/indra/newview/llfloaterenvironmentadjust.cpp +++ b/indra/newview/llfloaterenvironmentadjust.cpp @@ -115,6 +115,10 @@ BOOL LLFloaterEnvironmentAdjust::postBuild() void LLFloaterEnvironmentAdjust::onOpen(const LLSD& key) { + if (!mLiveSky) + { + LLEnvironment::instance().saveBeaconsState(); + } captureCurrentEnvironment(); mEventConnection = LLEnvironment::instance().setEnvironmentChanged([this](LLEnvironment::EnvSelection_t env, S32 version){ onEnvironmentUpdated(env, version); }); @@ -125,6 +129,7 @@ void LLFloaterEnvironmentAdjust::onOpen(const LLSD& key) void LLFloaterEnvironmentAdjust::onClose(bool app_quitting) { + LLEnvironment::instance().revertBeaconsState(); mEventConnection.disconnect(); mLiveSky.reset(); mLiveWater.reset(); |