Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2020-03-10 16:02:16 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-03-10 16:02:40 +0300
commita801487ef5049d9f4ecf947942761566bc64a176 (patch)
tree9089e5770eaea2e578cb5172cb70e9a92c4385ae /source/blender/editors/include
parentca717f0489af6854f3f4bedb3c1e82ea0a8dff1c (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')
-rw-r--r--source/blender/editors/include/ED_keyframes_edit.h8
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);