Eevee: Don't render meshes in hidden wire mode
This commit is contained in:
@@ -136,7 +136,9 @@ void EEVEE_cache_populate(void *vedata, Object *ob)
|
|||||||
EEVEE_hair_cache_populate(vedata, sldata, ob, &cast_shadow);
|
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)) {
|
if (ELEM(ob->type, OB_MESH, OB_CURVE, OB_SURF, OB_FONT, OB_MBALL)) {
|
||||||
EEVEE_materials_cache_populate(vedata, sldata, ob, &cast_shadow);
|
EEVEE_materials_cache_populate(vedata, sldata, ob, &cast_shadow);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user