Eevee: Fix world test for volumetric
Compiler even throws a warning at this.
This commit is contained in:
parent
3898236b81
commit
84d20dd227
Notes:
blender-bot
2023-02-14 11:28:43 +01:00
Referenced by issue #51984, Blender EEVEE Reflection Plane Does not Reflect Sky Properly Referenced by issue #51986, Blender EEVEE Shadows Look Choppy Referenced by issue #51972, Crash When Tab Into Edit Mode, Blender Internal Rendering Engine
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue