diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-26 05:06:25 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-26 05:37:40 +0300 |
commit | 6fd799c72c847f01b3fe0285ffded4055c83becc (patch) | |
tree | 18985be413ea39d3ed0db16a7420e6e48e7bd89c /source/blender/blenkernel/BKE_fcurve.h | |
parent | 758c2210ae9ef18f8bf7bab63c64ed482905f7b8 (diff) |
Animation: add BKE_fcurves_calc_keyed_frames utility
This function returns an array of keyed frames with rounding,
to avoid duplicates caused by subtle floating point difference.
Reviewed By: sybren
Ref D10781
Diffstat (limited to 'source/blender/blenkernel/BKE_fcurve.h')
-rw-r--r-- | source/blender/blenkernel/BKE_fcurve.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_fcurve.h b/source/blender/blenkernel/BKE_fcurve.h index 4569e68ea4a..ad9064fdfde 100644 --- a/source/blender/blenkernel/BKE_fcurve.h +++ b/source/blender/blenkernel/BKE_fcurve.h @@ -245,6 +245,14 @@ bool BKE_fcurve_calc_bounds(struct FCurve *fcu, const bool do_sel_only, const bool include_handles); +float *BKE_fcurves_calc_keyed_frames_ex(struct FCurve **fcurve_array, + const int fcurve_array_len, + const float interval, + int *r_frames_len); +float *BKE_fcurves_calc_keyed_frames(struct FCurve **fcurve_array, + const int fcurve_array_len, + int *r_frames_len); + void BKE_fcurve_active_keyframe_set(struct FCurve *fcu, const struct BezTriple *active_bezt); int BKE_fcurve_active_keyframe_index(const struct FCurve *fcu); |