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/blenkernel/intern/curve_catmull_rom.cc | |
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/blenkernel/intern/curve_catmull_rom.cc')
-rw-r--r-- | source/blender/blenkernel/intern/curve_catmull_rom.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/curve_catmull_rom.cc b/source/blender/blenkernel/intern/curve_catmull_rom.cc index 4b2174c912c..1875c7b366a 100644 --- a/source/blender/blenkernel/intern/curve_catmull_rom.cc +++ b/source/blender/blenkernel/intern/curve_catmull_rom.cc @@ -11,7 +11,7 @@ namespace blender::bke::curves::catmull_rom { int calculate_evaluated_num(const int points_num, const bool cyclic, const int resolution) { - const int eval_num = resolution * curve_segment_num(points_num, cyclic); + const int eval_num = resolution * segments_num(points_num, cyclic); /* If the curve isn't cyclic, one last point is added to the final point. */ return cyclic ? eval_num : eval_num + 1; } |