From 327c0401e650aa9d3674ef438b9e0599e26ef3a6 Mon Sep 17 00:00:00 2001 From: Vadim ProductEngine Date: Fri, 27 May 2011 02:43:36 +0300 Subject: STORM-1289 PARTIAL_FIX Re-applying the current region day cycle now doesn't revert region setting to fixed sky. --- indra/newview/llfloaterregioninfo.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'indra') 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. -- cgit v1.2.3