diff options
Diffstat (limited to 'source/blender/draw/engines/select/select_engine.c')
-rw-r--r-- | source/blender/draw/engines/select/select_engine.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/draw/engines/select/select_engine.c b/source/blender/draw/engines/select/select_engine.c index 5dc20a589f0..abfa57dd218 100644 --- a/source/blender/draw/engines/select/select_engine.c +++ b/source/blender/draw/engines/select/select_engine.c @@ -252,7 +252,11 @@ static void select_cache_populate(void *vedata, Object *ob) DRW_shgroup_call_obmat(stl->g_data->shgrp_depth_only, geom_faces, ob->obmat); } else if (ob->dt >= OB_SOLID) { +#ifdef USE_CAGE_OCCLUSION + struct GPUBatch *geom_faces = DRW_mesh_batch_cache_get_triangles_with_select_id(me); +#else struct GPUBatch *geom_faces = DRW_mesh_batch_cache_get_surface(me); +#endif DRW_shgroup_call_obmat(stl->g_data->shgrp_depth_only, geom_faces, ob->obmat); } |