Fix T63278 Eevee: LookDev: Volumetric on even if Scene World is off
This commit is contained in:
parent
3b2ea26554
commit
9fdc16e204
Notes:
blender-bot
2023-02-14 12:01:57 +01:00
Referenced by issue #63278, Eevee LookDev Mode -> Shading -> Scene World toggled off, volume absorption applied regardless
|
@ -391,7 +391,7 @@ void EEVEE_volumes_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata)
|
|||
|
||||
/* World Volumetric */
|
||||
struct World *wo = scene->world;
|
||||
if (wo != NULL && wo->use_nodes && wo->nodetree) {
|
||||
if (wo != NULL && wo->use_nodes && wo->nodetree && !LOOK_DEV_STUDIO_LIGHT_ENABLED(draw_ctx->v3d)) {
|
||||
struct GPUMaterial *mat = EEVEE_material_world_volume_get(scene, wo);
|
||||
|
||||
grp = DRW_shgroup_material_empty_tri_batch_create(mat,
|
||||
|
|
Loading…
Reference in New Issue