From 4c7376f939d6cbfe17a982a0e1ad93cc529a1ba7 Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Wed, 22 Aug 2018 16:54:14 +0300 Subject: MAINT-8881 EEP Blue Horizon swatch does not display the color set for that keyframe. --- indra/llinventory/llsettingssky.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/llinventory/llsettingssky.cpp b/indra/llinventory/llsettingssky.cpp index c0402f1fe4..184a75b9c7 100644 --- a/indra/llinventory/llsettingssky.cpp +++ b/indra/llinventory/llsettingssky.cpp @@ -892,7 +892,7 @@ LLColor3 LLSettingsSky::getBlueDensity() const LLColor3 LLSettingsSky::getBlueHorizon() const { - if (mSettings.has(SETTING_LEGACY_HAZE) && mSettings[SETTING_LEGACY_HAZE].has(SETTING_BLUE_DENSITY)) + if (mSettings.has(SETTING_LEGACY_HAZE) && mSettings[SETTING_LEGACY_HAZE].has(SETTING_BLUE_HORIZON)) { return LLColor3(mSettings[SETTING_LEGACY_HAZE][SETTING_BLUE_HORIZON]); } -- cgit v1.2.3 From 84cff0eca2f2d98d1c4bced78f4a163fd6aab7ff Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Wed, 22 Aug 2018 10:39:17 -0700 Subject: MAINT-8877: Fix the XML to fix the sizes of the dialogs. (also enforce single instance) --- .../skins/default/xui/en/floater_edit_ext_day_cycle.xml | 5 +++-- .../newview/skins/default/xui/en/floater_fixedenvironment.xml | 11 +++++------ .../newview/skins/default/xui/en/panel_region_environment.xml | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/indra/newview/skins/default/xui/en/floater_edit_ext_day_cycle.xml b/indra/newview/skins/default/xui/en/floater_edit_ext_day_cycle.xml index e3cd72c39d..dd0048e8f8 100644 --- a/indra/newview/skins/default/xui/en/floater_edit_ext_day_cycle.xml +++ b/indra/newview/skins/default/xui/en/floater_edit_ext_day_cycle.xml @@ -3,13 +3,14 @@ layout="topleft" name="env_edit_extdaycycle" help_topic="day_presets" - save_rect="true" + save_rect="false" title="Edit Day Cycle" width="705" height="650" min_width="705" min_height="650" - can_resize="true"> + single_instance="true" + can_resize="false"> Create a New Day Cycle diff --git a/indra/newview/skins/default/xui/en/floater_fixedenvironment.xml b/indra/newview/skins/default/xui/en/floater_fixedenvironment.xml index f88618fb71..36462dcd02 100644 --- a/indra/newview/skins/default/xui/en/floater_fixedenvironment.xml +++ b/indra/newview/skins/default/xui/en/floater_fixedenvironment.xml @@ -2,20 +2,19 @@ + width="750"> -Parcel environmental settings are -disabled on legacy regions. +No Parcel parcel is selected. Environmental +settings are disabled. Date: Wed, 22 Aug 2018 11:55:36 -0700 Subject: Don't sun_scale twice. Should have been moon_scale. --- indra/newview/skins/default/xui/en/panel_settings_sky_sunmoon.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/skins/default/xui/en/panel_settings_sky_sunmoon.xml b/indra/newview/skins/default/xui/en/panel_settings_sky_sunmoon.xml index 586aff4bb8..4b72bbbe0e 100644 --- a/indra/newview/skins/default/xui/en/panel_settings_sky_sunmoon.xml +++ b/indra/newview/skins/default/xui/en/panel_settings_sky_sunmoon.xml @@ -260,7 +260,7 @@ left_delta="5" min_val="0.25" max_val="20" - name="sun_scale" + name="moon_scale" top_delta="15" width="130" can_edit_text="true"/> -- cgit v1.2.3 From f45edabe478eb2e5ed899377f541875cbd566977 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Wed, 22 Aug 2018 23:02:16 +0100 Subject: MAINT-9026 hook up sun/moon scale to settingsvo and render code --- indra/newview/llsettingsvo.cpp | 3 +++ indra/newview/llsky.cpp | 16 ++++++++++++++++ indra/newview/llsky.h | 3 +++ indra/newview/llvosky.cpp | 20 +++++++++++++++----- indra/newview/llvosky.h | 8 +++++++- 5 files changed, 44 insertions(+), 6 deletions(-) diff --git a/indra/newview/llsettingsvo.cpp b/indra/newview/llsettingsvo.cpp index c56b5df74d..3638cd0b44 100644 --- a/indra/newview/llsettingsvo.cpp +++ b/indra/newview/llsettingsvo.cpp @@ -579,6 +579,9 @@ void LLSettingsVOSky::updateSettings() gSky.setMoonTextures(getMoonTextureId(), getNextMoonTextureId()); gSky.setCloudNoiseTextures(getCloudNoiseTextureId(), getNextCloudNoiseTextureId()); gSky.setBloomTextures(getBloomTextureId(), getNextBloomTextureId()); + + gSky.setSunScale(getSunScale()); + gSky.setMoonScale(getMoonScale()); } void LLSettingsVOSky::applySpecial(void *ptarget) diff --git a/indra/newview/llsky.cpp b/indra/newview/llsky.cpp index 9c7fc225a0..0740878901 100644 --- a/indra/newview/llsky.cpp +++ b/indra/newview/llsky.cpp @@ -129,6 +129,22 @@ void LLSky::resetVertexBuffers() } } +void LLSky::setSunScale(F32 sun_scale) +{ + if(mVOSkyp.notNull()) + { + mVOSkyp->setSunScale(sun_scale); + } +} + +void LLSky::setMoonScale(F32 moon_scale) +{ + if(mVOSkyp.notNull()) + { + mVOSkyp->setMoonScale(moon_scale); + } +} + void LLSky::setSunTextures(const LLUUID& sun_texture, const LLUUID& sun_texture_next) { if(mVOSkyp.notNull()) { diff --git a/indra/newview/llsky.h b/indra/newview/llsky.h index d2067a58bb..e3cc567888 100644 --- a/indra/newview/llsky.h +++ b/indra/newview/llsky.h @@ -61,6 +61,9 @@ public: void setCloudNoiseTextures(const LLUUID& cloud_noise_texture, const LLUUID& cloud_noise_texture_next); void setBloomTextures(const LLUUID& bloom_texture, const LLUUID& bloom_texture_next); + void setSunScale(F32 sun_scale); + void setMoonScale(F32 moon_scale); + LLColor4 getSkyFogColor() const; void setCloudDensityAtAgent(F32 cloud_density); diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index 64be033fdc..81632796e4 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -775,6 +775,16 @@ LLDrawable *LLVOSky::createDrawable(LLPipeline *pipeline) return mDrawable; } +void LLVOSky::setSunScale(F32 sun_scale) +{ + mSunScale = sun_scale; +} + +void LLVOSky::setMoonScale(F32 moon_scale) +{ + mMoonScale = moon_scale; +} + void LLVOSky::setSunTextures(const LLUUID& sun_texture, const LLUUID& sun_texture_next) { // We test the UUIDs here because we explicitly do not want the default image returned by getFetchedTexture in that case... @@ -955,8 +965,8 @@ BOOL LLVOSky::updateGeometry(LLDrawable *drawable) right.normalize(); up.normalize(); - bool draw_sun = updateHeavenlyBodyGeometry(drawable, FACE_SUN, mSun, up, right); - bool draw_moon = updateHeavenlyBodyGeometry(drawable, FACE_MOON, mMoon, up, right); + bool draw_sun = updateHeavenlyBodyGeometry(drawable, mSunScale, FACE_SUN, mSun, up, right); + bool draw_moon = updateHeavenlyBodyGeometry(drawable, mMoonScale, FACE_MOON, mMoon, up, right); draw_sun &= LLEnvironment::getInstance()->getIsSunUp(); draw_moon &= LLEnvironment::getInstance()->getIsMoonUp(); @@ -987,7 +997,7 @@ BOOL LLVOSky::updateGeometry(LLDrawable *drawable) return TRUE; } -bool LLVOSky::updateHeavenlyBodyGeometry(LLDrawable *drawable, const S32 f, LLHeavenBody& hb, const LLVector3 &up, const LLVector3 &right) +bool LLVOSky::updateHeavenlyBodyGeometry(LLDrawable *drawable, F32 scale, const S32 f, LLHeavenBody& hb, const LLVector3 &up, const LLVector3 &right) { mHeavenlyBodyUpdated = TRUE ; @@ -1010,8 +1020,8 @@ bool LLVOSky::updateHeavenlyBodyGeometry(LLDrawable *drawable, const S32 f, LLHe F32 horiz_enlargement = 1 + enlargm_factor * 0.3f; F32 vert_enlargement = 1 + enlargm_factor * 0.2f; - const LLVector3 scaled_right = horiz_enlargement * HEAVENLY_BODY_DIST * HEAVENLY_BODY_FACTOR * hb.getDiskRadius() * hb_right; - const LLVector3 scaled_up = vert_enlargement * HEAVENLY_BODY_DIST * HEAVENLY_BODY_FACTOR * hb.getDiskRadius() * hb_up; + const LLVector3 scaled_right = horiz_enlargement * scale * HEAVENLY_BODY_DIST * HEAVENLY_BODY_FACTOR * hb.getDiskRadius() * hb_right; + const LLVector3 scaled_up = vert_enlargement * scale * HEAVENLY_BODY_DIST * HEAVENLY_BODY_FACTOR * hb.getDiskRadius() * hb_up; LLVector3 v_clipped[4]; diff --git a/indra/newview/llvosky.h b/indra/newview/llvosky.h index d8039b7f80..4943c48f7c 100644 --- a/indra/newview/llvosky.h +++ b/indra/newview/llvosky.h @@ -236,7 +236,7 @@ public: void setSunDirectionCFR(const LLVector3 &sun_direction); void setMoonDirectionCFR(const LLVector3 &moon_direction); - bool updateHeavenlyBodyGeometry(LLDrawable *drawable, const S32 side, LLHeavenBody& hb, const LLVector3 &up, const LLVector3 &right); + bool updateHeavenlyBodyGeometry(LLDrawable *drawable, F32 scale, const S32 side, LLHeavenBody& hb, const LLVector3 &up, const LLVector3 &right); void updateReflectionGeometry(LLDrawable *drawable, F32 H, const LLHeavenBody& HB); F32 getWorldScale() const { return mWorldScale; } @@ -278,6 +278,9 @@ public: void setCloudNoiseTextures(const LLUUID& cloud_noise_texture, const LLUUID& cloud_noise_texture_next); void setBloomTextures(const LLUUID& bloom_texture, const LLUUID& bloom_texture_next); + void setSunScale(F32 sun_scale); + void setMoonScale(F32 sun_scale); + void forceSkyUpdate(void) { mForceUpdate = TRUE; } public: @@ -297,6 +300,9 @@ protected: LLPointer mCloudNoiseTexturep[2]; LLPointer mBloomTexturep[2]; + F32 mSunScale = 1.0f; + F32 mMoonScale = 1.0f; + static S32 sResolution; static S32 sTileResX; static S32 sTileResY; -- cgit v1.2.3 From 9d3a5fef8fc0ec64f018ff6d4f0fca88fd9c33db Mon Sep 17 00:00:00 2001 From: Rider Linden Date: Wed, 22 Aug 2018 15:12:27 -0700 Subject: MAINT-9034, MAINT-9035: Move the load frame button and change the lock icon to text. --- .../default/xui/en/floater_edit_ext_day_cycle.xml | 48 +++++++++------------- 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/indra/newview/skins/default/xui/en/floater_edit_ext_day_cycle.xml b/indra/newview/skins/default/xui/en/floater_edit_ext_day_cycle.xml index dd0048e8f8..e553948d9d 100644 --- a/indra/newview/skins/default/xui/en/floater_edit_ext_day_cycle.xml +++ b/indra/newview/skins/default/xui/en/floater_edit_ext_day_cycle.xml @@ -401,8 +401,16 @@ width="90" label="Add Frame" left_pad="175" - top_delta="-12" + top_delta="-20" name="add_frame" /> +