Eevee: Transparency: Fix crash when using transparent shadows.
Fixes T52024
This commit is contained in:
parent
593b80143b
commit
1b91b443e0
Notes:
blender-bot
2023-02-14 06:48:43 +01:00
Referenced by issue #52024, Crash : Setting Transparent Shadow on Objects Ignoring Material Nodes Crashes Blender
|
@ -997,7 +997,7 @@ void EEVEE_materials_cache_populate(EEVEE_Data *vedata, EEVEE_SceneLayerData *sl
|
|||
ADD_SHGROUP_CALL_SAFE(shgrp_depth_clip_array[i], ob, mat_geom[i]);
|
||||
|
||||
/* Shadow Pass */
|
||||
if (ma->blend_method != MA_BM_SOLID) {
|
||||
if (ma->use_nodes && ma->nodetree && (ma->blend_method != MA_BM_SOLID)) {
|
||||
struct GPUMaterial *gpumat;
|
||||
switch (ma->blend_shadow) {
|
||||
case MA_BS_SOLID:
|
||||
|
|
Loading…
Reference in New Issue