diff options
author | Hans Goudey <h.goudey@me.com> | 2022-07-04 19:50:33 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-07-04 19:51:10 +0300 |
commit | dccdc6213ec6ff3c3ff681090f56648ec4023034 (patch) | |
tree | 4ed21ee7c9554b7a1b3ef69edb2f45b16d63c1c8 /source/blender/blenkernel/intern/curve_bezier.cc | |
parent | 8fb8a6529fa64d6e17042cdf469d9920eb939660 (diff) |
Curves: Expose function to calculate vector handles
Diffstat (limited to 'source/blender/blenkernel/intern/curve_bezier.cc')
-rw-r--r-- | source/blender/blenkernel/intern/curve_bezier.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/curve_bezier.cc b/source/blender/blenkernel/intern/curve_bezier.cc index 5ba17f1761b..1d6ee4938b5 100644 --- a/source/blender/blenkernel/intern/curve_bezier.cc +++ b/source/blender/blenkernel/intern/curve_bezier.cc @@ -106,11 +106,11 @@ static void calculate_point_handles(const HandleType type_left, } if (type_left == BEZIER_HANDLE_VECTOR) { - left = math::interpolate(position, prev_position, 1.0f / 3.0f); + left = calculate_vector_handle(position, prev_position); } if (type_right == BEZIER_HANDLE_VECTOR) { - right = math::interpolate(position, next_position, 1.0f / 3.0f); + right = calculate_vector_handle(position, next_position); } /* When one of the handles is "aligned" handle, it must be aligned with the other, i.e. point in |