diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-17 23:24:43 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-12-18 04:19:52 +0300 |
commit | 6a1315d6e72689907207a1202b6372402ace59af (patch) | |
tree | 8938905d8d8d8e43cbb6ff0f7341873183d46e58 /source/blender/draw/intern/draw_cache.c | |
parent | 4fceaf3848b6ff926a8f0ffdb8f5a7b1537da57b (diff) |
Weight Paint Overlay: Refactor wire drawing
This reduce the number of batch/data needed. Stores a select/visiblee
flag inside the vert/loop normals.
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c index d5c99e149f9..c30362a044e 100644 --- a/source/blender/draw/intern/draw_cache.c +++ b/source/blender/draw/intern/draw_cache.c @@ -2992,22 +2992,6 @@ GPUBatch *DRW_cache_single_vert_get(void) /** \name Meshes * \{ */ -GPUBatch *DRW_cache_mesh_surface_overlay_get(Object *ob) -{ - BLI_assert(ob->type == OB_MESH); - Mesh *me = ob->data; - return DRW_mesh_batch_cache_get_all_triangles(me); -} - -GPUBatch *DRW_cache_face_centers_get(Object *ob) -{ - BLI_assert(ob->type == OB_MESH); - - Mesh *me = ob->data; - - return DRW_mesh_batch_cache_get_edit_facedots(me); -} - GPUBatch *DRW_cache_mesh_wire_outline_get(Object *ob) { BLI_assert(ob->type == OB_MESH); |