summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterenvironmentsettings.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2017-10-13 17:17:49 -0700
committerRider Linden <rider@lindenlab.com>2017-10-13 17:17:49 -0700
commitcc22ffc6d799544e8f2a9dfed6813081d908c88d (patch)
tree0b02af15c41104fb253cd7a9e705fa1f3f9fd829 /indra/newview/llfloaterenvironmentsettings.cpp
parente4b035d0cd3eaa76fd82643c17e3631c67387a54 (diff)
Watter settings active and start of new joystick button type.
Diffstat (limited to 'indra/newview/llfloaterenvironmentsettings.cpp')
-rw-r--r--indra/newview/llfloaterenvironmentsettings.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/indra/newview/llfloaterenvironmentsettings.cpp b/indra/newview/llfloaterenvironmentsettings.cpp
index 3a059e92dc..39907b19a3 100644
--- a/indra/newview/llfloaterenvironmentsettings.cpp
+++ b/indra/newview/llfloaterenvironmentsettings.cpp
@@ -32,10 +32,6 @@
#include "llradiogroup.h"
#include "lldaycyclemanager.h"
-#include "llenvmanager.h"
-#include "llwaterparammanager.h"
-#include "llwlparamset.h"
-#include "llwlparammanager.h"
#include "llenvironment.h"
@@ -74,10 +70,10 @@ BOOL LLFloaterEnvironmentSettings::postBuild()
setCloseCallback(boost::bind(&LLFloaterEnvironmentSettings::cancel, this));
- LLEnvManagerNew::instance().setPreferencesChangeCallback(boost::bind(&LLFloaterEnvironmentSettings::refresh, this));
- LLDayCycleManager::instance().setModifyCallback(boost::bind(&LLFloaterEnvironmentSettings::populateDayCyclePresetsList, this));
- LLWLParamManager::instance().setPresetListChangeCallback(boost::bind(&LLFloaterEnvironmentSettings::populateSkyPresetsList, this));
- LLWaterParamManager::instance().setPresetListChangeCallback(boost::bind(&LLFloaterEnvironmentSettings::populateWaterPresetsList, this));
+// LLEnvManagerNew::instance().setPreferencesChangeCallback(boost::bind(&LLFloaterEnvironmentSettings::refresh, this));
+// LLDayCycleManager::instance().setModifyCallback(boost::bind(&LLFloaterEnvironmentSettings::populateDayCyclePresetsList, this));
+// LLWLParamManager::instance().setPresetListChangeCallback(boost::bind(&LLFloaterEnvironmentSettings::populateSkyPresetsList, this));
+// LLWaterParamManager::instance().setPresetListChangeCallback(boost::bind(&LLFloaterEnvironmentSettings::populateWaterPresetsList, this));
return TRUE;
}
@@ -199,7 +195,9 @@ void LLFloaterEnvironmentSettings::apply()
env_mgr.useDayCycle(day_cycle, LLEnvKey::SCOPE_LOCAL);
}
- env_mgr.useWaterPreset(water_preset);
+ /* LAPRAS */
+ //env_mgr.useWaterPreset(water_preset);
+ LLEnvironment::instance().selectWater(water_preset);
}
}
@@ -214,7 +212,7 @@ void LLFloaterEnvironmentSettings::populateWaterPresetsList()
mWaterPresetCombo->removeall();
std::list<std::string> user_presets, system_presets;
- LLWaterParamManager::instance().getPresetNames(user_presets, system_presets);
+ //LLWaterParamManager::instance().getPresetNames(user_presets, system_presets);
// Add user presets first.
for (std::list<std::string>::const_iterator it = user_presets.begin(); it != user_presets.end(); ++it)