diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-22 23:04:53 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-01-11 18:00:23 +0300 |
commit | 4c0c4e7f9fed6e675d11363865594fb294bdc4b6 (patch) | |
tree | 7144f530119d5aa8900b20f0153e9208816ec699 /source/blender | |
parent | 9d19ff90760755f6dea97a58fa50e5e299ae334e (diff) |
Mesh Batch Cache: Fix wrong assert
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_mesh.c | 8 |
1 files changed, 4 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 54f42c310e1..be37787ae7c 100644 --- a/source/blender/draw/intern/draw_cache_impl_mesh.c +++ b/source/blender/draw/intern/draw_cache_impl_mesh.c @@ -1182,12 +1182,12 @@ static int mesh_render_data_verts_len_get_maybe_mapped(const MeshRenderData *rda static int UNUSED_FUNCTION(mesh_render_data_loose_verts_len_get)(const MeshRenderData *rdata) { - BLI_assert(rdata->types & MR_DATATYPE_OVERLAY); + BLI_assert(rdata->types & MR_DATATYPE_LOOSE_VERT); return rdata->loose_vert_len; } static int mesh_render_data_loose_verts_len_get_maybe_mapped(const MeshRenderData *rdata) { - BLI_assert(rdata->types & MR_DATATYPE_OVERLAY); + BLI_assert(rdata->types & MR_DATATYPE_LOOSE_VERT); return ((rdata->mapped.use == false) ? rdata->loose_vert_len : rdata->mapped.loose_vert_len); } @@ -1204,12 +1204,12 @@ static int mesh_render_data_edges_len_get_maybe_mapped(const MeshRenderData *rda static int UNUSED_FUNCTION(mesh_render_data_loose_edges_len_get)(const MeshRenderData *rdata) { - BLI_assert(rdata->types & MR_DATATYPE_OVERLAY); + BLI_assert(rdata->types & MR_DATATYPE_LOOSE_EDGE); return rdata->loose_edge_len; } static int mesh_render_data_loose_edges_len_get_maybe_mapped(const MeshRenderData *rdata) { - BLI_assert(rdata->types & MR_DATATYPE_OVERLAY); + BLI_assert(rdata->types & MR_DATATYPE_LOOSE_EDGE); return ((rdata->mapped.use == false) ? rdata->loose_edge_len : rdata->mapped.loose_edge_len); } |