diff options
author | Hans Goudey <h.goudey@me.com> | 2022-07-04 04:44:56 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-07-04 04:44:56 +0300 |
commit | f4a9a3767ee2f5c34c8f8fa6e4dc89232bb3dcd6 (patch) | |
tree | 4d6571f2a56bce840d6d6a85c3a27771adbf3e6a /source/blender/draw/intern | |
parent | e86c2f7288724bd6fec33ff43e89816d7520a2b3 (diff) |
Cleanup: Rename curve segment count function
`curve_segment_num` -> `segments_num`.
The "curve" prefix is reduntant for a function in the curve namespace.
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_curve.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_curve.cc b/source/blender/draw/intern/draw_cache_impl_curve.cc index ebcdabe4942..695c348d8e2 100644 --- a/source/blender/draw/intern/draw_cache_impl_curve.cc +++ b/source/blender/draw/intern/draw_cache_impl_curve.cc @@ -108,7 +108,7 @@ static void curve_eval_render_wire_verts_edges_len_get(const blender::bke::Curve const blender::VArray<bool> cyclic = curves.cyclic(); for (const int i : curves.curves_range()) { const IndexRange points = curves.evaluated_points_for_curve(i); - *r_edge_len += blender::bke::curves::curve_segment_num(points.size(), cyclic[i]); + *r_edge_len += blender::bke::curves::segments_num(points.size(), cyclic[i]); } } |