Eevee: Don't render meshes in hidden wire mode
This commit is contained in:
parent
a3bb385ca0
commit
9f6978a1ba
|
@ -136,7 +136,9 @@ void EEVEE_cache_populate(void *vedata, Object *ob)
|
|||
EEVEE_hair_cache_populate(vedata, sldata, ob, &cast_shadow);
|
||||
}
|
||||
|
||||
if (DRW_check_object_visible_within_active_context(ob)) {
|
||||
if (DRW_object_is_renderable(ob) &&
|
||||
DRW_check_object_visible_within_active_context(ob))
|
||||
{
|
||||
if (ELEM(ob->type, OB_MESH, OB_CURVE, OB_SURF, OB_FONT, OB_MBALL)) {
|
||||
EEVEE_materials_cache_populate(vedata, sldata, ob, &cast_shadow);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue