Eevee: Don't render meshes in hidden wire mode

This commit is contained in:
Clément Foucault 2018-09-24 23:18:28 +02:00
parent a3bb385ca0
commit 9f6978a1ba
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}