Cleanup: use DRW_object_is_* for object checks
Also use const qualifier for object's.
This commit is contained in:
@@ -137,7 +137,7 @@ void EEVEE_cache_populate(void *vedata, Object *ob)
|
||||
}
|
||||
|
||||
if (DRW_object_is_renderable(ob) &&
|
||||
DRW_check_object_visible_within_active_context(ob))
|
||||
DRW_object_is_visible_in_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);
|
||||
|
||||
Reference in New Issue
Block a user