[Bf-blender-cvs] [84d20dd2275] blender2.8: Eevee: Fix world test for volumetric
Dalai Felinto
noreply at git.blender.org
Tue Jul 4 18:07:51 CEST 2017
Commit: 84d20dd22756929b7b75000f1498960ae00375e1
Author: Dalai Felinto
Date: Tue Jul 4 18:07:34 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB84d20dd22756929b7b75000f1498960ae00375e1
Eevee: Fix world test for volumetric
Compiler even throws a warning at this.
===================================================================
M source/blender/draw/engines/eevee/eevee_effects.c
===================================================================
diff --git a/source/blender/draw/engines/eevee/eevee_effects.c b/source/blender/draw/engines/eevee/eevee_effects.c
index 7150cac6add..07e1a7029e9 100644
--- a/source/blender/draw/engines/eevee/eevee_effects.c
+++ b/source/blender/draw/engines/eevee/eevee_effects.c
@@ -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;
}
}
More information about the Bf-blender-cvs
mailing list