summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermenu.cpp
diff options
context:
space:
mode:
authorSeth ProductEngine <slitovchuk@productengine.com>2011-05-17 17:09:15 +0300
committerSeth ProductEngine <slitovchuk@productengine.com>2011-05-17 17:09:15 +0300
commitec749bb1c1fa143c6019791d6713d85f05510e53 (patch)
tree2081fcb35d67cbc1c9de99865a28eb60a4e4b8fb /indra/newview/llviewermenu.cpp
parent53d09e7451b89a1c050f3237e6eb5c5ef3b116fc (diff)
STORM-1244 FIXED Environment Settings floater implementation.
Diffstat (limited to 'indra/newview/llviewermenu.cpp')
-rw-r--r--indra/newview/llviewermenu.cpp42
1 files changed, 7 insertions, 35 deletions
diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp
index 4acf9a1fad..0edba58755 100644
--- a/indra/newview/llviewermenu.cpp
+++ b/indra/newview/llviewermenu.cpp
@@ -7579,10 +7579,16 @@ class LLWorldEnvSettings : public view_listener_t
std::string tod = userdata.asString();
LLVector3 sun_direction;
- if (tod == "editor")
+ if (tod == "old_editor")
{
// if not there or is hidden, show it
// *TODO replace with LLFloaterWindLight::show(LLEnvKey::SCOPE_LOCAL) to make sure we're using the right scope?
+ LLFloaterReg::toggleInstance("old_env_settings");
+ return true;
+ }
+
+ if (tod == "editor")
+ {
LLFloaterReg::toggleInstance("env_settings");
return true;
}
@@ -7612,38 +7618,6 @@ class LLWorldEnvSettings : public view_listener_t
}
};
-class LLWorldCheckEnvironment : public view_listener_t
-{
- bool handleEvent(const LLSD& userdata)
- {
- const std::string& item = userdata.asString();
-
- if (item == "use_region_settings")
- {
- // Check whether we're using region environment settings.
- return LLEnvManagerNew::instance().getUseRegionSettings();
- }
-
- return true;
- }
-};
-
-class LLWorldEnvironment : public view_listener_t
-{
- bool handleEvent(const LLSD& userdata)
- {
- const std::string& item = userdata.asString();
-
- if (item == "use_region_settings")
- {
- bool cur_val = LLEnvManagerNew::instance().getUseRegionSettings();
- LLEnvManagerNew::instance().setUseRegionSettings(!cur_val);
- }
-
- return true;
- }
-};
-
/// Post-Process callbacks
class LLWorldPostProcess : public view_listener_t
{
@@ -7892,8 +7866,6 @@ void initialize_menus()
view_listener_t::addMenu(new LLWorldCheckAlwaysRun(), "World.CheckAlwaysRun");
view_listener_t::addMenu(new LLWorldEnvSettings(), "World.EnvSettings");
- view_listener_t::addEnable(new LLWorldCheckEnvironment(), "World.CheckEnvironment");
- view_listener_t::addMenu(new LLWorldEnvironment(), "World.Environment");
view_listener_t::addMenu(new LLWorldPostProcess(), "World.PostProcess");
view_listener_t::addMenu(new LLWorldDayCycle(), "World.DayCycle");