diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-09-17 14:26:38 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-09-17 14:26:57 +0300 |
commit | 8f662e84e0b49a581f9330bf1c560e62485b3f6a (patch) | |
tree | bfb48c00c71a6bb8b65e023192745928d4885e53 /source/blender/draw/engines/select/select_engine.c | |
parent | 6ee2d10005a9e3f47ba6eed53d4e56b9e76f9842 (diff) |
Fix T69716: Can't select geometry hidden by faces created by modifiers
This kind of reverts rBc060a835 that was committed without discussion.
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); } |