summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatereditsky.cpp
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2017-11-08 16:02:20 -0800
committerRider Linden <rider@lindenlab.com>2017-11-08 16:02:20 -0800
commitfe846ec9942af5ad2ab6a4aad9e8561ba9bc1fba (patch)
treea664e1205eef8fb255d0bdd46486b8586e7e30b9 /indra/newview/llfloatereditsky.cpp
parent36c2992b01631150f7259c98df1cb46020757066 (diff)
Day cycles and animated sky/water blending.
Diffstat (limited to 'indra/newview/llfloatereditsky.cpp')
-rw-r--r--indra/newview/llfloatereditsky.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/llfloatereditsky.cpp b/indra/newview/llfloatereditsky.cpp
index 23744e5b07..715376cfa3 100644
--- a/indra/newview/llfloatereditsky.cpp
+++ b/indra/newview/llfloatereditsky.cpp
@@ -52,9 +52,12 @@
#include "llenvironment.h"
#include "llenvadapters.h"
-static const F32 WL_SUN_AMBIENT_SLIDER_SCALE = 3.0f;
-static const F32 WL_BLUE_HORIZON_DENSITY_SCALE = 2.0f;
-static const F32 WL_CLOUD_SLIDER_SCALE = 1.0f;
+namespace
+{
+ const F32 WL_SUN_AMBIENT_SLIDER_SCALE(3.0f);
+ const F32 WL_BLUE_HORIZON_DENSITY_SCALE(2.0f);
+ const F32 WL_CLOUD_SLIDER_SCALE(1.0f);
+}
// static F32 sun_pos_to_time24(F32 sun_pos)
// {
@@ -647,7 +650,7 @@ void LLFloaterEditSky::onSkyPresetSelected()
}
psky = psky->buildClone();
- LLEnvironment::instance().selectSky(psky);
+ LLEnvironment::instance().selectSky(psky, LLEnvironment::TRANSITION_FAST);
syncControls();
enableEditing(true);