mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
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.
This commit is contained in:
parent
9575dbdf78
commit
92e74ed250
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user