diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-14 17:23:13 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-12-14 18:17:29 +0300 |
commit | f371e633f9428e767dce4aab59b5f30c78f2b66f (patch) | |
tree | 9d632bb0f7105bad95a10581dbfe0fa904d3e989 /source/blender/draw/intern/draw_cache_impl_mesh.c | |
parent | e4b3fe4b690689357f81e58442d9bdf77e502124 (diff) |
Curve Batch Cache: Add support for loose edges and curve/surf modifier
Fixes T58298 Nurbs circle and curve dont draw in objectmode
Fixes T58107 Modified curves/surfaces/fonts do not show their eval mesh
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_mesh.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_mesh.c b/source/blender/draw/intern/draw_cache_impl_mesh.c index 66eab91b15e..9fff11d1a68 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -5761,13 +5761,11 @@ void DRW_mesh_cache_uvedit( /** \name Grouped batch generation * \{ */ -void DRW_mesh_batch_cache_create_requested(Object *ob) +/* Can be called for any surface type. Mesh *me is the final mesh. */ +void DRW_mesh_batch_cache_create_requested(Object *UNUSED(ob), Mesh *me) { - BLI_assert(ob->type == OB_MESH); - const bool use_hide = false; /* TODO */ - Mesh *me = (Mesh *)ob->data; MeshBatchCache *cache = mesh_batch_cache_get(me); /* Init batches and request VBOs & IBOs */ |