From 62e7b3d3c71cbd777633525595b87991d797ef65 Mon Sep 17 00:00:00 2001 From: Vadim ProductEngine Date: Fri, 1 Jul 2011 16:31:02 +0300 Subject: STORM-1470 FIXED Sky setting / Lighting preset position controls were inconsistent. --- indra/newview/llfloatereditsky.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'indra') diff --git a/indra/newview/llfloatereditsky.cpp b/indra/newview/llfloatereditsky.cpp index 0163dfbf30..abee7b5dc9 100644 --- a/indra/newview/llfloatereditsky.cpp +++ b/indra/newview/llfloatereditsky.cpp @@ -249,8 +249,9 @@ void LLFloaterEditSky::syncControls() param_mgr->mAmbient = cur_params.getVector(param_mgr->mAmbient.mName, err); setColorSwatch("WLAmbient", param_mgr->mAmbient, WL_SUN_AMBIENT_SLIDER_SCALE); - F32 sun_pos = param_mgr->mCurParams.getFloat("sun_angle",err) / F_TWO_PI; - getChild("WLSunPos")->setCurSliderValue(sun_pos_to_time24(sun_pos), TRUE); + F32 time24 = sun_pos_to_time24(param_mgr->mCurParams.getFloat("sun_angle",err) / F_TWO_PI); + getChild("WLSunPos")->setCurSliderValue(time24, TRUE); + getChild("WLDayTime")->setTime24(time24); childSetValue("WLEastAngle", param_mgr->mCurParams.getFloat("east_angle",err) / F_TWO_PI); // Clouds -- cgit v1.2.3