diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-03-10 16:02:16 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-03-10 16:02:40 +0300 |
commit | a801487ef5049d9f4ecf947942761566bc64a176 (patch) | |
tree | 9089e5770eaea2e578cb5172cb70e9a92c4385ae /source/blender/editors/include/ED_keyframes_edit.h | |
parent | ca717f0489af6854f3f4bedb3c1e82ea0a8dff1c (diff) |
Fix T65076: Missing EasingType implementation on the Dopesheet
EasingType was implemented rBdaccaa713b6e for the GraphEditor (but never
made it to the Dopesheet). If you can select Easing Mode in the
DopeSheet, then you should also be able to select the associated Easing
Type.
Thanks @lichtwerk for the initial implementation.
Maniphest Tasks: T65076
Differential Revision: https://developer.blender.org/D6094
Diffstat (limited to 'source/blender/editors/include/ED_keyframes_edit.h')
-rw-r--r-- | source/blender/editors/include/ED_keyframes_edit.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_keyframes_edit.h b/source/blender/editors/include/ED_keyframes_edit.h index d0d07fc3245..3ae0c254000 100644 --- a/source/blender/editors/include/ED_keyframes_edit.h +++ b/source/blender/editors/include/ED_keyframes_edit.h @@ -28,6 +28,8 @@ extern "C" { #endif +#include "ED_anim_api.h" /* for enum eAnimFilter_Flags */ + struct BezTriple; struct FCurve; struct Scene; @@ -251,6 +253,12 @@ short ANIM_animchanneldata_keyframes_loop(KeyframeEditData *ked, KeyframeEditFunc key_cb, FcuEditFunc fcu_cb); +/* Calls callback_fn() for each keyframe in each fcurve in the filtered animation context. + * Assumes the callback updates keys. */ +void ANIM_animdata_keyframe_callback(struct bAnimContext *ac, + eAnimFilter_Flags filter, + KeyframeEditFunc callback_fn); + /* functions for making sure all keyframes are in good order */ void ANIM_editkeyframes_refresh(struct bAnimContext *ac); |