Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2021-02-01 16:54:08 +0300
committerClément Foucault <foucault.clem@gmail.com>2021-02-01 16:54:08 +0300
commitc02f2d7371a11d1d0c575b42dc7dd790926a0877 (patch)
treeeefef157521c0644bacf60001b2ce9cce1155d65
parentd1ee8a0502c0bb83ca7e4206a730226f56bd2c8e (diff)
Fix T81177 EEVEE: Missing shadow if last material has no shadow
This was caused by the boolean not being a union of all the material slots.
-rw-r--r--source/blender/draw/engines/eevee/eevee_materials.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c
index c7a8f7729eb..273521b0b28 100644
--- a/source/blender/draw/engines/eevee/eevee_materials.c
+++ b/source/blender/draw/engines/eevee/eevee_materials.c
@@ -856,7 +856,7 @@ void EEVEE_materials_cache_populate(EEVEE_Data *vedata,
ADD_SHGROUP_CALL(matcache[i].shading_grp, ob, mat_geom[i], oedata);
ADD_SHGROUP_CALL_SAFE(matcache[i].depth_grp, ob, mat_geom[i], oedata);
ADD_SHGROUP_CALL_SAFE(matcache[i].shadow_grp, ob, mat_geom[i], oedata);
- *cast_shadow = (matcache[i].shadow_grp != NULL);
+ *cast_shadow = *cast_shadow || (matcache[i].shadow_grp != NULL);
}
}
}