diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-04-19 23:24:28 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-04-19 23:24:28 +0300 |
commit | db6862e15b1ff6257593eab798250316a350cf73 (patch) | |
tree | a3683abe55ec9b59e7be600a4ee58428fc837758 /indra/newview/llfloaterenvsettings.cpp | |
parent | 302e0bc87ec6429de1c4e29ed8469c2b1de766d5 (diff) |
STORM-1174 FIX Moved "Use Region Environment Settings" to the "World -> Edit My Environment" menu.
It has been a checkbox in the environment editor.
Diffstat (limited to 'indra/newview/llfloaterenvsettings.cpp')
-rw-r--r-- | indra/newview/llfloaterenvsettings.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/indra/newview/llfloaterenvsettings.cpp b/indra/newview/llfloaterenvsettings.cpp index 2fa022049d..a2a6005b14 100644 --- a/indra/newview/llfloaterenvsettings.cpp +++ b/indra/newview/llfloaterenvsettings.cpp @@ -71,31 +71,9 @@ BOOL LLFloaterEnvSettings::postBuild() initCallbacks(); syncMenu(); - LLEnvKey::EScope cur_scope = LLEnvManager::getInstance()->getNormallyDisplayedScope(); - childSetValue("RegionWLOptIn", cur_scope == LLEnvKey::SCOPE_REGION); - return TRUE; } -void LLFloaterEnvSettings::onUseRegionEnvironment(LLUICtrl* ctrl, void* data) -{ - //LLFloaterEnvSettings* self = (LLFloaterEnvSettings*)data; - LLCheckBoxCtrl* checkbox = static_cast<LLCheckBoxCtrl*>(ctrl); //self->getChildView("RegionWLOptIn"); - setOptIn(checkbox->getValue().asBoolean()); -} - -void LLFloaterEnvSettings::setOptIn(bool opt_in) -{ - if (opt_in) - { - LLEnvManager::getInstance()->setNormallyDisplayedScope(LLEnvKey::SCOPE_REGION); - } - else - { - LLEnvManager::getInstance()->setNormallyDisplayedScope(LLEnvKey::SCOPE_LOCAL); - } -} - void LLFloaterEnvSettings::initCallbacks(void) { // our three sliders @@ -112,8 +90,7 @@ void LLFloaterEnvSettings::initCallbacks(void) childSetCommitCallback("EnvUseEstateTimeButton", &LLFloaterEnvSettings::onUseEstateTime, NULL); getChild<LLUICtrl>("EnvUseLocalTimeButton")->setCommitCallback(boost::bind(&LLFloaterEnvSettings::onUseLocalTime)); - childSetCommitCallback("RegionWLOptIn", &LLFloaterEnvSettings::onUseRegionEnvironment, NULL); - getChild<LLUICtrl>("RegionWLOptIn")->setRightMouseDownCallback(boost::bind(&LLEnvManager::dumpScopes, &LLEnvManager::instance())); + getChild<LLUICtrl>("EnvUseEstateTimeButton")->setRightMouseDownCallback(boost::bind(&LLEnvManager::dumpScopes, &LLEnvManager::instance())); } |