diff --git a/indra/newview/llfloaterwindlight.cpp b/indra/newview/llfloaterwindlight.cpp index 7e9eb6a1f..211e3620c 100644 --- a/indra/newview/llfloaterwindlight.cpp +++ b/indra/newview/llfloaterwindlight.cpp @@ -302,6 +302,10 @@ void LLFloaterWindLight::syncMenu() // blue horizon param_mgr->mBlueHorizon = cur_params.getVector(param_mgr->mBlueHorizon.mName, err); //setColorSwatch("WLBlueHorizon", param_mgr->mBlueHorizon, WL_BLUE_HORIZON_DENSITY_SCALE); + childSetValue("WLBlueHorizonR", param_mgr->mBlueHorizon.r); + childSetValue("WLBlueHorizonG", param_mgr->mBlueHorizon.g); + childSetValue("WLBlueHorizonB", param_mgr->mBlueHorizon.b); + childSetValue("WLBlueHorizonI", param_mgr->mBlueHorizon.i); // haze density, horizon, mult, and altitude param_mgr->mHazeDensity = cur_params.getFloat(param_mgr->mHazeDensity.mName, err); @@ -316,12 +320,20 @@ void LLFloaterWindLight::syncMenu() // blue density param_mgr->mBlueDensity = cur_params.getVector(param_mgr->mBlueDensity.mName, err); //setColorSwatch("WLBlueDensity", param_mgr->mBlueDensity, WL_BLUE_HORIZON_DENSITY_SCALE); + childSetValue("WLBlueDensityR", param_mgr->mBlueDensity.r); + childSetValue("WLBlueDensityG", param_mgr->mBlueDensity.g); + childSetValue("WLBlueDensityB", param_mgr->mBlueDensity.b); + childSetValue("WLBlueDensityI", param_mgr->mBlueDensity.i); // Lighting // sunlight param_mgr->mSunlight = cur_params.getVector(param_mgr->mSunlight.mName, err); //setColorSwatch("WLSunlight", param_mgr->mSunlight, WL_SUN_AMBIENT_SLIDER_SCALE); + childSetValue("WLSunlightR", param_mgr->mSunlight.r); + childSetValue("WLSunlightG", param_mgr->mSunlight.g); + childSetValue("WLSunlightB", param_mgr->mSunlight.b); + childSetValue("WLSunlightI", param_mgr->mSunlight.i); // glow param_mgr->mGlow = cur_params.getVector(param_mgr->mGlow.mName, err); @@ -331,6 +343,10 @@ void LLFloaterWindLight::syncMenu() // ambient param_mgr->mAmbient = cur_params.getVector(param_mgr->mAmbient.mName, err); //setColorSwatch("WLAmbient", param_mgr->mAmbient, WL_SUN_AMBIENT_SLIDER_SCALE); + childSetValue("WLAmbientR", param_mgr->mAmbient.r); + childSetValue("WLAmbientG", param_mgr->mAmbient.g); + childSetValue("WLAmbientB", param_mgr->mAmbient.b); + childSetValue("WLAmbientI", param_mgr->mAmbient.i); childSetValue("WLSunAngle", param_mgr->mCurParams.getFloat("sun_angle",err) / F_TWO_PI); childSetValue("WLEastAngle", param_mgr->mCurParams.getFloat("east_angle",err) / F_TWO_PI); @@ -340,6 +356,10 @@ void LLFloaterWindLight::syncMenu() // Cloud Color param_mgr->mCloudColor = cur_params.getVector(param_mgr->mCloudColor.mName, err); //setColorSwatch("WLCloudColor", param_mgr->mCloudColor, WL_CLOUD_SLIDER_SCALE); + childSetValue("WLCloudColorR", param_mgr->mCloudColor.r); + childSetValue("WLCloudColorG", param_mgr->mCloudColor.g); + childSetValue("WLCloudColorB", param_mgr->mCloudColor.b); + childSetValue("WLCloudColorI", param_mgr->mCloudColor.i); // Cloud param_mgr->mCloudMain = cur_params.getVector(param_mgr->mCloudMain.mName, err);