diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-10 12:27:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-10 12:47:43 +0300 |
commit | 1a12c9edab4ac89c8a87c20ad3a2195d0e681bc8 (patch) | |
tree | 1cd7e5771f4dd232fec39f678071836da8a1789e /source/blender/editors/animation/anim_intern.h | |
parent | 99f1e3d57fa1ee1f4400c299f1247ac5c614b6f0 (diff) |
Keyframing: add operators that use keying-set ID's
Unfortunately we can't use insert/delete_keyframe operators in keymaps
because the enums aren't known at the time of keymap registration
and the keying sets are dynamic and use a poll function.
Add a version of insert/delete operators that takes a string
instead of an enum. Needed for D4626.
Also extract int to keying-set into a utility function.
Diffstat (limited to 'source/blender/editors/animation/anim_intern.h')
-rw-r--r-- | source/blender/editors/animation/anim_intern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/animation/anim_intern.h b/source/blender/editors/animation/anim_intern.h index af1fd0e31c4..4661d19378a 100644 --- a/source/blender/editors/animation/anim_intern.h +++ b/source/blender/editors/animation/anim_intern.h @@ -38,6 +38,8 @@ extern ListBase builtin_keyingsets; */ void ANIM_OT_keyframe_insert(struct wmOperatorType *ot); void ANIM_OT_keyframe_delete(struct wmOperatorType *ot); +void ANIM_OT_keyframe_insert_by_name(struct wmOperatorType *ot); +void ANIM_OT_keyframe_delete_by_name(struct wmOperatorType *ot); /* Main Keyframe Management operators: * These handle keyframes management from various spaces. They will handle the menus |