SL-19990 Brightness slider should be named HDR Scale unless Reflection Probe Ambiance (HDR) is 0

meow-7.2.2
Mnikolenko Productengine 2023-07-12 15:21:28 +03:00
parent d6734b7e2e
commit 0a93c3e22d
2 changed files with 4 additions and 4 deletions

View File

@ -217,7 +217,7 @@ void LLPanelSettingsSkyAtmosTab::refresh()
getChild<LLUICtrl>(FIELD_SKY_DENSITY_ICE_LEVEL)->setValue(ice_level);
getChild<LLUICtrl>(FIELD_REFLECTION_PROBE_AMBIANCE)->setValue(rp_ambiance);
updateGammaLabel();
updateGammaLabel(should_auto_adjust);
}
//-------------------------------------------------------------------------
@ -335,10 +335,10 @@ void LLPanelSettingsSkyAtmosTab::onReflectionProbeAmbianceChanged()
}
void LLPanelSettingsSkyAtmosTab::updateGammaLabel()
void LLPanelSettingsSkyAtmosTab::updateGammaLabel(bool auto_adjust)
{
if (!mSkySettings) return;
F32 ambiance = mSkySettings->getReflectionProbeAmbiance();
F32 ambiance = mSkySettings->getReflectionProbeAmbiance(auto_adjust);
if (ambiance != 0.f)
{
childSetValue("scene_gamma_label", getString("hdr_string"));

View File

@ -80,7 +80,7 @@ private:
void onDropletRadiusChanged();
void onIceLevelChanged();
void onReflectionProbeAmbianceChanged();
void updateGammaLabel();
void updateGammaLabel(bool auto_adjust = false);
};