summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM.H. Alkotob <HummusSamurai@users.noreply.github.com>2017-08-14 14:48:35 +0300
committerGitHub <noreply@github.com>2017-08-14 14:48:35 +0300
commit92e74ed2509f27ec232eb58f146796a19bb5a44c (patch)
tree5dd6fc0c7fe01d84d1e2399aa203dfad1d22d942
parent9575dbdf788e8a5154b3ec2f66913e731ac02850 (diff)
Fix console warning: Condition !env is true
The trivial yet astute fix was suggested by @bojidar-bg in IRC. Compiling confirms it does the job, so thought I'd push a PR.
-rw-r--r--scene/resources/environment.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/environment.cpp b/scene/resources/environment.cpp
index c121dae1f1..0bf6a50d93 100644
--- a/scene/resources/environment.cpp
+++ b/scene/resources/environment.cpp
@@ -1135,6 +1135,8 @@ void Environment::_bind_methods() {
Environment::Environment() {
+ environment = VS::get_singleton()->environment_create();
+
bg_mode = BG_CLEAR_COLOR;
bg_sky_scale = 1.0;
bg_energy = 1.0;
@@ -1160,8 +1162,6 @@ Environment::Environment() {
set_adjustment_enable(adjustment_enabled); //update
- environment = VS::get_singleton()->environment_create();
-
ssr_enabled = false;
ssr_max_steps = 64;
ssr_fade_in = 0.15;