Eevee: Fix world test for volumetric
authorDalai Felinto <dfelinto@gmail.com>
Tue, 4 Jul 2017 16:07:34 +0000 (18:07 +0200)
committerDalai Felinto <dfelinto@gmail.com>
Tue, 4 Jul 2017 16:07:39 +0000 (18:07 +0200)
Compiler even throws a warning at this.

source/blender/draw/engines/eevee/eevee_effects.c

index 7150cac6addc5b88f10d725eba915f25ea3abc5b..07e1a7029e98a6b943f6e34316ea7ad543c4388b 100644 (file)
@@ -411,7 +411,7 @@ void EEVEE_effects_init(EEVEE_Data *vedata)
                                    &tex_vol, 1);
 
                World *wo = scene->world;
-               if ((wo != NULL) && (wo->use_nodes != NULL) && (wo->nodetree != NULL)) {
+               if ((wo != NULL) && (wo->use_nodes) && (wo->nodetree != NULL)) {
                        effects->enabled_effects |= EFFECT_VOLUMETRIC;
                }
        }