diff options
author | Hans Goudey <h.goudey@me.com> | 2022-06-04 18:12:17 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-06-04 18:12:17 +0300 |
commit | db5ffdd1a4964aacf586249a8ee98fd1c58e7344 (patch) | |
tree | 2da242c446b46990b2de346b97090c2ed823b5a8 /source/blender/draw/intern/draw_cache_impl_subdivision.cc | |
parent | 6572ad86208a157c80aa31313a596505b3648215 (diff) |
Cleanup: Use const for retrieved custom data layers
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_subdivision.cc')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_subdivision.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_subdivision.cc b/source/blender/draw/intern/draw_cache_impl_subdivision.cc index c11a5e32c67..b5cdbd3617e 100644 --- a/source/blender/draw/intern/draw_cache_impl_subdivision.cc +++ b/source/blender/draw/intern/draw_cache_impl_subdivision.cc @@ -867,10 +867,10 @@ static bool draw_subdiv_topology_info_cb(const SubdivForeachContext *foreach_con ctx->subdiv_loop_subdiv_edge_index = cache->subdiv_loop_subdiv_edge_index; ctx->subdiv_loop_poly_index = cache->subdiv_loop_poly_index; - ctx->v_origindex = static_cast<int *>( + ctx->v_origindex = static_cast<const int *>( CustomData_get_layer(&ctx->coarse_mesh->vdata, CD_ORIGINDEX)); - ctx->e_origindex = static_cast<int *>( + ctx->e_origindex = static_cast<const int *>( CustomData_get_layer(&ctx->coarse_mesh->edata, CD_ORIGINDEX)); if (cache->num_subdiv_verts) { |