summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterregioninfo.cpp
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-03-31 18:24:01 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-03-31 18:24:01 +0300
commit7419abc12ba07380593fa3c0571155b248b8c8a6 (patch)
tree42085618659d245e93589e6554ab0607f1c294f8 /indra/newview/llfloaterregioninfo.cpp
parent79fb8e2ec26dc2c5a42ef1ee48ebaaa39183c67b (diff)
STORM-1126 WIP Windlight Estate Settings integration: pass 5
* Added "Apply Local to Region" button to the region terrain setttings panel. * Fixed previewing presets via a combomox in the Advanced Sky Editor floater.
Diffstat (limited to 'indra/newview/llfloaterregioninfo.cpp')
-rw-r--r--indra/newview/llfloaterregioninfo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llfloaterregioninfo.cpp b/indra/newview/llfloaterregioninfo.cpp
index 874cc1a030..c09baf1e09 100644
--- a/indra/newview/llfloaterregioninfo.cpp
+++ b/indra/newview/llfloaterregioninfo.cpp
@@ -1225,6 +1225,7 @@ BOOL LLPanelRegionTerrainInfo::postBuild()
childSetAction("WLRegionApply", onCommitRegionWL, this);
childSetAction("WLRegionCancel", onCancelRegionWL, this);
childSetAction("WLRegionDefault", onSetRegionToDefaultWL, this);
+ childSetAction("WLCurrentApply", onApplyCurrentWL, this);
return TRUE;
}
@@ -1469,6 +1470,13 @@ void LLPanelRegionTerrainInfo::onSetRegionToDefaultWL(void* userData)
LLEnvManager::instance().startEditingScope(LLEnvKey::SCOPE_REGION);
}
+// static
+void LLPanelRegionTerrainInfo::onApplyCurrentWL(void* userData)
+{
+ // Immediately apply current environment settings to region.
+ LLEnvManager::instance().applyLocalSettingsToRegion();
+}
+
void LLPanelRegionTerrainInfo::cancelChanges()
{
LLFloaterReg::hideInstance("env_windlight");