Remove ERR_FAIL_COND that never happens in _draw_sky

In the conditional `sky` is always true.
This commit is contained in:
Markus Sauermann 2022-09-30 12:32:02 +02:00
parent f47979f087
commit 7e9327350c

View file

@ -737,7 +737,6 @@ void RasterizerSceneGLES3::_draw_sky(RID p_env, const Projection &p_projection,
RS::EnvironmentBG background = environment_get_background(p_env);
if (sky) {
ERR_FAIL_COND(!sky);
sky_material = sky->material;
if (sky_material.is_valid()) {