summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-05-27 02:43:36 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-05-27 02:43:36 +0300
commit327c0401e650aa9d3674ef438b9e0599e26ef3a6 (patch)
treeffbe5df48d47e6807bcebcf6b903d274b4899b84
parentbbde07245bdcedd05bd37863d573c94c2af4c6f7 (diff)
STORM-1289 PARTIAL_FIX Re-applying the current region day cycle now doesn't revert region setting to fixed sky.
-rw-r--r--indra/newview/llfloaterregioninfo.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfloaterregioninfo.cpp b/indra/newview/llfloaterregioninfo.cpp
index ee3d00206f..712cf921d2 100644
--- a/indra/newview/llfloaterregioninfo.cpp
+++ b/indra/newview/llfloaterregioninfo.cpp
@@ -3580,6 +3580,15 @@ void LLPanelEnvironmentInfo::onBtnApply()
{
return;
}
+
+ // If it's a single-preset day cycle, reset the frame time to a non-negative value
+ // so that the region setting is displayed in the floater as
+ // a day cycle, not a preset. (STORM-1289)
+ if (day_cycle.size() == 1 && day_cycle[0][0].asReal() < 0.0f)
+ {
+ LL_DEBUGS("Windlight") << "Fixing negative time" << LL_ENDL;
+ day_cycle[0][0] = 0.0f;
+ }
}
// Get water params.