From 04db46b088b8d974f10ce0b5acdd35007f4bb060 Mon Sep 17 00:00:00 2001 From: maxim_productengine Date: Mon, 29 Jul 2019 11:33:09 +0300 Subject: SL-11626 FIXED [EEP] Day Cycle window does not display accurate values while playhead is between keyframes. --- indra/newview/llpaneleditsky.cpp | 26 ++++++++++++++------------ indra/newview/llpaneleditwater.cpp | 6 +++--- 2 files changed, 17 insertions(+), 15 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llpaneleditsky.cpp b/indra/newview/llpaneleditsky.cpp index 8bcc546133..a069d6655f 100644 --- a/indra/newview/llpaneleditsky.cpp +++ b/indra/newview/llpaneleditsky.cpp @@ -173,15 +173,15 @@ void LLPanelSettingsSkyAtmosTab::setEnabled(BOOL enabled) void LLPanelSettingsSkyAtmosTab::refresh() { - if (!mSkySettings || !getCanChangeSettings()) + if (!mSkySettings) { setAllChildrenEnabled(FALSE); setEnabled(FALSE); return; } - setEnabled(TRUE); - setAllChildrenEnabled(TRUE); + setEnabled(getCanChangeSettings()); + setAllChildrenEnabled(getCanChangeSettings()); getChild(FIELD_SKY_AMBIENT_LIGHT)->set(mSkySettings->getAmbientColor() / SLIDER_SCALE_SUN_AMBIENT); getChild(FIELD_SKY_BLUE_HORIZON)->set(mSkySettings->getBlueHorizon() / SLIDER_SCALE_BLUE_HORIZON_DENSITY); @@ -359,15 +359,15 @@ void LLPanelSettingsSkyCloudTab::setEnabled(BOOL enabled) void LLPanelSettingsSkyCloudTab::refresh() { - if (!mSkySettings || !getCanChangeSettings()) + if (!mSkySettings) { setAllChildrenEnabled(FALSE); setEnabled(FALSE); return; } - setEnabled(TRUE); - setAllChildrenEnabled(TRUE); + setEnabled(getCanChangeSettings()); + setAllChildrenEnabled(getCanChangeSettings()); getChild(FIELD_SKY_CLOUD_COLOR)->set(mSkySettings->getCloudColor()); getChild(FIELD_SKY_CLOUD_COVERAGE)->setValue(mSkySettings->getCloudShadow()); @@ -512,7 +512,7 @@ void LLPanelSettingsSkySunMoonTab::setEnabled(BOOL enabled) void LLPanelSettingsSkySunMoonTab::refresh() { - if (!mSkySettings || !getCanChangeSettings()) + if (!mSkySettings) { getChildView(PANEL_SKY_SUN_LAYOUT)->setAllChildrenEnabled(FALSE); getChildView(PANEL_SKY_MOON_LAYOUT)->setAllChildrenEnabled(FALSE); @@ -521,8 +521,10 @@ void LLPanelSettingsSkySunMoonTab::refresh() return; } - setEnabled(TRUE); - setAllChildrenEnabled(TRUE); + setEnabled(getCanChangeSettings()); + getChildView(PANEL_SKY_SUN_LAYOUT)->setAllChildrenEnabled(getCanChangeSettings()); + getChildView(PANEL_SKY_MOON_LAYOUT)->setAllChildrenEnabled(getCanChangeSettings()); + setAllChildrenEnabled(getCanChangeSettings()); getChild(FIELD_SKY_SUN_MOON_COLOR)->set(mSkySettings->getSunlightColor() / SLIDER_SCALE_SUN_AMBIENT); @@ -693,15 +695,15 @@ void LLPanelSettingsSkyDensityTab::setEnabled(BOOL enabled) void LLPanelSettingsSkyDensityTab::refresh() { - if (!mSkySettings || !getCanChangeSettings()) + if (!mSkySettings) { setAllChildrenEnabled(FALSE); setEnabled(FALSE); return; } - setEnabled(TRUE); - setAllChildrenEnabled(TRUE); + setEnabled(getCanChangeSettings()); + setAllChildrenEnabled(getCanChangeSettings()); // Get first (only) profile layer of each type for editing LLSD rayleigh_config = mSkySettings->getRayleighConfig(); diff --git a/indra/newview/llpaneleditwater.cpp b/indra/newview/llpaneleditwater.cpp index deba7f487f..a09964e17d 100644 --- a/indra/newview/llpaneleditwater.cpp +++ b/indra/newview/llpaneleditwater.cpp @@ -130,15 +130,15 @@ void LLPanelSettingsWaterMainTab::setEnabled(BOOL enabled) //========================================================================== void LLPanelSettingsWaterMainTab::refresh() { - if (!mWaterSettings || !getCanChangeSettings()) + if (!mWaterSettings) { setAllChildrenEnabled(FALSE); setEnabled(FALSE); return; } - setEnabled(TRUE); - setAllChildrenEnabled(TRUE); + setEnabled(getCanChangeSettings()); + setAllChildrenEnabled(getCanChangeSettings()); mClrFogColor->set(mWaterSettings->getWaterFogColor()); getChild(FIELD_WATER_FOG_DENSITY)->setValue(mWaterSettings->getWaterFogDensity()); getChild(FIELD_WATER_UNDERWATER_MOD)->setValue(mWaterSettings->getFogMod()); -- cgit v1.2.3