32#include "RNA_prototypes.hh"
82 if (sact ==
nullptr) {
119 if (
ELEM(
nullptr, markers, act)) {
124 for (marker = markers->first(); marker; marker = markern) {
125 markern = marker->
next;
149 ot->
name =
"Convert to Pose Markers";
150 ot->
idname =
"ACTION_OT_markers_make_local";
151 ot->
description =
"Move selected scene markers to the active action as pose markers";
170 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
183 *
max = -999999999.0f;
186 if (anim_data.first_) {
206 const float framenum =
float(masklay_shape.
frame);
215 for (
const auto [key, frame] :
layer.frames().items()) {
216 if (onlySel && !frame.is_selected()) {
281 if (ac.
scene ==
nullptr) {
308 ot->
name =
"Set Preview Range to Selected";
309 ot->
idname =
"ACTION_OT_previewrange_set";
310 ot->
description =
"Set Preview Range based on extents of selected Keyframes";
335 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
349 for (ale = anim_data.first(); ale; ale = ale->
next, ymax -= channel_step) {
394 if (only_sel && (found ==
false)) {
414 if (only_sel ==
false) {
427 float ymid = (ymax - ymin) / 2.0f + ymin;
463 ot->
name =
"Frame All";
464 ot->
idname =
"ACTION_OT_view_all";
465 ot->
description =
"Reset viewable area to show full keyframe range";
478 ot->
name =
"Frame Selected";
479 ot->
idname =
"ACTION_OT_view_selected";
480 ot->
description =
"Reset viewable area to show selected keyframes range";
507 ot->
name =
"Go to Current Frame";
508 ot->
idname =
"ACTION_OT_view_frame";
509 ot->
description =
"Move the view to the current frame";
529 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
559 paste_context.
flip = flip;
565 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
584 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
644 if (!kf_ok && !gpf_ok) {
656 ot->
name =
"Copy Keyframes";
657 ot->
idname =
"ACTION_OT_copy";
658 ot->
description =
"Copy selected keyframes to the internal clipboard";
676 bool gpframes_inbuf =
false;
700 "Keyframe pasting is not available for Grease Pencil or mask mode");
712 if (!gpframes_inbuf) {
745 return BLI_strdup(
TIP_(
"Paste keyframes from mirrored bones if they exist"));
756 ot->
name =
"Paste Keyframes";
757 ot->
idname =
"ACTION_OT_paste";
759 "Paste keyframes from the internal clipboard for the selected channels, starting on the "
778 "Paste time offset of keys");
784 "Method of merging pasted keys and existing");
786 ot->
srna,
"flipped",
false,
"Flipped",
"Paste keyframes from mirrored bones if they exist");
798 {1,
"ALL", 0,
"All Channels",
""},
799 {2,
"SEL", 0,
"Only Selected Channels",
""},
801 {3,
"GROUP", 0,
"In Active Group",
""},
802 {0,
nullptr, 0,
nullptr,
nullptr},
811 bGPdata *gpd = id_cast<bGPdata *>(ale->
id);
815 if (gpd != *gpd_old) {
823 const bool hold_previous)
828 const int current_frame_number = ac->
scene->
r.
cfra;
830 if (
layer->frames().contains(current_frame_number)) {
834 bool changed =
false;
836 const std::optional<int> active_frame_number =
layer->start_frame_at(current_frame_number);
837 if (!active_frame_number) {
845 *
layer, *active_frame_number, current_frame_number,
false);
885 const std::optional<StringRefNull> channel_group = fcu->
grp ? std::optional(fcu->
grp->
name) :
891 {{fcu->rna_path(), {}, fcu->array_index}},
897 result.generate_reports(reports);
948 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
964 else if (mode == 3) {
1004 BLI_assert_msg(
false,
"Keys cannot be inserted into this animation type.");
1049 ot->
name =
"Insert Keyframes";
1050 ot->
idname =
"ACTION_OT_keyframe_insert";
1051 ot->
description =
"Insert keyframes for the specified channels";
1073 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1075 bool changed =
false;
1137 ot->
name =
"Duplicate Keyframes";
1138 ot->
idname =
"ACTION_OT_duplicate";
1139 ot->
description =
"Make a copy of all selected keyframes";
1157 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1159 bool changed_final =
false;
1168 bool changed =
false;
1193 ale.key_data =
nullptr;
1199 changed_final =
true;
1206 return changed_final;
1238 IFACE_(
"Delete selected keyframes?"),
1250 ot->
name =
"Delete Keyframes";
1251 ot->
idname =
"ACTION_OT_delete";
1252 ot->
description =
"Remove all selected keyframes";
1272 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1285 const bool only_selected_keys = !clean_chan;
1288 clean_fcurve(&ale, thresh, clean_chan, only_selected_keys);
1334 return TIP_(
"Simplify F-Curves and remove empty or redundant channels.");
1344 ot->
name =
"Clean Keyframes";
1345 ot->
idname =
"ACTION_OT_clean";
1346 ot->
description =
"Simplify F-Curves by removing closely spaced keyframes";
1359 ot->
srna,
"threshold", 0.001f, 0.0f,
FLT_MAX,
"Threshold",
"", 0.0f, 1000.0f);
1372 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1419 ot->
name =
"Bake Keyframes";
1420 ot->
idname =
"ACTION_OT_bake_keys";
1421 ot->
description =
"Add keyframes on every frame between the selected keyframes";
1438#define MAKE_CYCLIC_EXPO -1
1439#define CLEAR_CYCLIC_EXPO -2
1446 "Constant Extrapolation",
1447 "Values on endpoint keyframes are held"},
1451 "Linear Extrapolation",
1452 "Straight-line slope of end segments are extended past the endpoint keyframes"},
1457 "Make Cyclic (F-Modifier)",
1458 "Add Cycles F-Modifier if one does not exist already"},
1462 "Clear Cyclic (F-Modifier)",
1463 "Remove Cycles F-Modifier if not needed anymore"},
1464 {0,
nullptr, 0,
nullptr,
nullptr},
1470 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1501 for (fcm = fcu->
modifiers.first(); fcm; fcm = fcn) {
1550 ot->
name =
"Set F-Curve Extrapolation";
1551 ot->
idname =
"ACTION_OT_extrapolation_type";
1552 ot->
description =
"Set extrapolation mode for selected F-Curves";
1606 ot->
name =
"Set Keyframe Interpolation";
1607 ot->
idname =
"ACTION_OT_interpolation_type";
1609 "Set interpolation mode for the F-Curve segments starting from the selected keyframes";
1660 ot->
name =
"Set Keyframe Easing Type";
1661 ot->
idname =
"ACTION_OT_easing_type";
1663 "Set easing type for the F-Curve segments starting from the selected keyframes";
1687 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1750 ot->
name =
"Set Keyframe Handle Type";
1751 ot->
idname =
"ACTION_OT_handle_type";
1752 ot->
description =
"Set type of handle for selected keyframes";
1775 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1804 nullptr,
static_cast<FCurve *
>(ale.key_data),
nullptr, set_cb,
nullptr);
1809 BLI_assert_msg(
false,
"Keytype cannot be set into this animation type.");
1845 ot->
name =
"Set Keyframe Type";
1846 ot->
idname =
"ACTION_OT_keyframe_type";
1847 ot->
description =
"Set type of keyframe for the selected keyframes";
1870 if (
G.is_rendering) {
1881 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1896 switch (ale.datatype) {
1917 for (
auto [frame_number, frame] :
layer.frames().items()) {
1918 if (!frame.is_selected()) {
1921 ked.
f1 += frame_number;
1936 BLI_assert_msg(
false,
"Cannot jump to keyframe into this animation type.");
1958 ot->
name =
"Jump to Keyframes";
1959 ot->
idname =
"ACTION_OT_frame_jump";
1960 ot->
description =
"Set the current frame to the average frame value of selected keyframes";
1981 "Selection to Current Frame",
1982 "Snap selected keyframes to the current frame"},
1986 "Selection to Nearest Frame",
1987 "Snap selected keyframes to the nearest (whole) frame "
1988 "(use to fix accidental subframe offsets)"},
1992 "Selection to Nearest Second",
1993 "Snap selected keyframes to the nearest second"},
1997 "Selection to Nearest Marker",
1998 "Snap selected keyframes to the nearest marker"},
1999 {0,
nullptr, 0,
nullptr,
nullptr},
2005 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2092 ot->
name =
"Snap Keys";
2093 ot->
idname =
"ACTION_OT_snap";
2094 ot->
description =
"Snap selected keyframes to the times specified";
2119 "By Times Over Current Frame",
2120 "Flip times of selected keyframes using the current frame as the mirror line"},
2124 "By Times Over First Selected Marker",
2125 "Flip times of selected keyframes using the first selected marker as the reference point"},
2130 "By Values Over Zero Value",
2131 "Flip values of selected keyframes (i.e. negative values become positive, and vice versa)"},
2132 {0,
nullptr, 0,
nullptr,
nullptr},
2138 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
2227 ot->
name =
"Mirror Keys";
2228 ot->
idname =
"ACTION_OT_mirror";
2229 ot->
description =
"Flip selected keyframes over the selected mirror line";
Functions and classes to work with Actions.
Functions to work with AnimData.
Functions to modify FCurves.
Functions to insert, delete or modify keyframes.
Low-level operations for grease pencil.
#define BLT_I18NCONTEXT_ID_ACTION
#define ANIM_UPDATE_DEFAULT
#define RNA_ENUM_ITEM_SEPR
#define CLEAR_CYCLIC_EXPO
#define BLI_assert_msg(a, msg)
void assert_baklava_phase_1_invariants(const Action &action)
KeyframeSettings get_keyframe_settings(bool from_userprefs)
Vector< float > get_property_values(PointerRNA *ptr, PropertyRNA *prop, bool visual_key)
SingleKeyingResult insert_vert_fcurve(FCurve *fcu, const float2 position, const KeyframeSettings &settings, eInsertKeyFlags flag)
Main Key-framing API call.
ID * action_slot_get_id_for_keying(Main &bmain, Action &action, slot_handle_t slot_handle, ID *primary_id)
void bake_fcurve_segments(FCurve *fcu)
eInsertKeyFlags get_keyframing_flags(Scene *scene)
CombinedKeyingResult insert_keyframes(Main *bmain, PointerRNA *struct_pointer, std::optional< StringRefNull > channel_group, const Span< RNAPath > rna_paths, std::optional< float > scene_frame, const AnimationEvalContext &anim_eval_context, eBezTriple_KeyframeType key_type, eInsertKeyFlags insert_key_flags)
Main key-frame insertion API.
bool remove_all_selected_frames(GreasePencil &grease_pencil, bke::greasepencil::Layer &layer)
bool grease_pencil_copy_keyframes(bAnimContext *ac, KeyframeClipboard &clipboard)
bool grease_pencil_paste_keyframes(bAnimContext *ac, const eKeyPasteOffset offset_mode, const eKeyMergeMode merge_mode, const KeyframeClipboard &clipboard)
void set_selected_frames_type(bke::greasepencil::Layer &layer, const eBezTriple_KeyframeType key_type)
bool mirror_selected_frames(GreasePencil &grease_pencil, bke::greasepencil::Layer &layer, Scene &scene, const eEditKeyframes_Mirror mode)
bool duplicate_selected_frames(GreasePencil &grease_pencil, bke::greasepencil::Layer &layer)
bool snap_selected_frames(GreasePencil &grease_pencil, bke::greasepencil::Layer &layer, Scene &scene, const eEditKeyframes_Snap mode)
BLI_INLINE Texture * wrap(MTLTexture *texture)
void view2d_center_set(View2D *v2d, float x, float y)
void view2d_center_get(const View2D *v2d, float *r_x, float *r_y)
void view2d_sync(bScreen *screen, ScrArea *area, View2D *v2dcur, int flag)
MINLINE float min_ff(float a, float b)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
@ KEYFRAME_PASTE_NOTHING_TO_PASTE
@ KEYFRAME_PASTE_NOWHERE_TO_PASTE
static wmOperatorStatus actkeys_delete_exec(bContext *C, wmOperator *)
static wmOperatorStatus actkeys_copy_exec(bContext *C, wmOperator *op)
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
KeyframeEditFunc ANIM_editkeyframes_ok(short mode)
static void snap_action_keys(bAnimContext *ac, short mode)
ScrArea * CTX_wm_area(const bContext *C)
short ANIM_channel_setting_get(bAnimContext *ac, bAnimListElem *ale, eAnimChannel_Settings setting)
static wmOperatorStatus actkeys_delete_invoke(bContext *C, wmOperator *op, const wmEvent *)
bool BKE_fcurve_calc_range(const FCurve *fcu, float *r_min, float *r_max, bool selected_keys_only)
SpaceAction * CTX_wm_space_action(const bContext *C)
int RNA_enum_get(PointerRNA *ptr, const char *name)
static const EnumPropertyItem prop_actkeys_insertkey_types[]
static wmOperatorStatus actkeys_view_frame_exec(bContext *C, wmOperator *op)
void ACTION_OT_view_frame(wmOperatorType *ot)
bool BKE_fcurve_delete_keys_selected(FCurve &fcu)
static ed::greasepencil::KeyframeClipboard & get_grease_pencil_keyframe_clipboard()
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
static wmOperatorStatus actkeys_keytype_exec(bContext *C, wmOperator *op)
const bAnimChannelType * ANIM_channel_get_typeinfo(const bAnimListElem *ale)
KeyframeEditFunc ANIM_editkeyframes_ipo(short mode)
struct bGPDframe * BKE_annotations_layer_frame_get(struct bGPDlayer *gpl, int cframe, eGP_GetFrame_Mode addnew)
void ACTION_OT_easing_type(wmOperatorType *ot)
KeyframeEditFunc ANIM_editkeyframes_handles(short mode)
static bool delete_action_keys(bAnimContext *ac)
ListBaseT< TimeMarker > * ED_context_get_markers(const bContext *C)
MINLINE int round_fl_to_int(float a)
PointerRNA RNA_id_pointer_create(ID *id)
static const EnumPropertyItem prop_actkeys_mirror_types[]
void ACTION_OT_extrapolation_type(wmOperatorType *ot)
void ACTION_OT_clean(wmOperatorType *ot)
void ED_gpencil_layer_mirror_frames(bGPDlayer *gpl, Scene *scene, short mode)
static void setexpo_action_keys(bAnimContext *ac, short mode)
static bool act_markers_make_local_poll(bContext *C)
bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac)
void clean_fcurve(bAnimListElem *ale, float thresh, bool cleardefault, const bool only_selected_keys)
void ACTION_OT_view_selected(wmOperatorType *ot)
int WM_operator_smooth_viewtx_get(const wmOperator *op)
static wmOperatorStatus actkeys_viewall_exec(bContext *C, wmOperator *)
float ANIM_nla_tweakedit_remap(bAnimListElem *ale, const float cframe, const eNlaTime_ConvertModes mode)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
bool ED_masklayer_frames_duplicate(Main *main, MaskLayer *mask_layer)
void ACTION_OT_delete(wmOperatorType *ot)
void ED_masklayer_snap_frames(MaskLayer *mask_layer, Scene *scene, short mode)
static void clean_action_keys(bAnimContext *ac, float thresh, bool clean_chan)
static wmOperatorStatus act_markers_make_local_exec(bContext *C, wmOperator *)
static wmOperatorStatus actkeys_expo_exec(bContext *C, wmOperator *op)
static wmOperatorStatus actkeys_insertkey_exec(bContext *C, wmOperator *op)
const EnumPropertyItem rna_enum_keyframe_paste_merge_items[]
FModifier * add_fmodifier(ListBaseT< FModifier > *modifiers, int type, FCurve *owner_fcu)
rctf ANIM_frame_range_view2d_add_xmargin(const View2D &view_2d, const rctf view_rect)
bool duplicate_fcurve_keys(FCurve *fcu)
@ ANIMTYPE_GREASE_PENCIL_LAYER
void ACTION_OT_view_all(wmOperatorType *ot)
static std::string actkeys_clean_get_description(bContext *, wmOperatorType *, PointerRNA *ptr)
static bool actkeys_framejump_poll(bContext *C)
void ACTION_OT_paste(wmOperatorType *ot)
static void insert_gpencil_key(bAnimContext *ac, bAnimListElem *ale, const eGP_GetFrame_Mode add_frame_mode, bGPdata **gpd_old)
bAction * ANIM_active_action_from_area(const Main &bmain, Scene *scene, ViewLayer *view_layer, const ScrArea *area, ID **r_action_user)
bool list_has_suitable_fmodifier(const ListBaseT< FModifier > *modifiers, int mtype, short acttype)
static wmOperatorStatus actkeys_ipo_exec(bContext *C, wmOperator *op)
@ KEYFRAME_PASTE_MERGE_MIX
static bool get_keyframe_extents(bAnimContext *ac, float *min, float *max, const short onlySel)
@ KEYFRAME_PASTE_OFFSET_CFRA_START
short ANIM_fcurve_keyframes_loop(KeyframeEditData *ked, FCurve *fcu, KeyframeEditFunc key_ok, KeyframeEditFunc key_cb, FcuEditFunc fcu_cb)
bool remove_fmodifier(ListBaseT< FModifier > *modifiers, FModifier *fcm)
static wmOperatorStatus actkeys_easing_exec(bContext *C, wmOperator *op)
static void insert_nla_curve_key(bAnimListElem &ale, const AnimationEvalContext &anim_eval_context, const eInsertKeyFlags flag)
void ANIM_nla_mapping_apply_if_needed_fcurve(bAnimListElem *ale, FCurve *fcu, const bool restore, const bool only_keys)
void ANIM_animdata_update(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data)
ViewLayer * CTX_data_view_layer(const bContext *C)
AnimationEvalContext BKE_animsys_eval_context_construct(Depsgraph *depsgraph, float eval_time) ATTR_WARN_UNUSED_RESULT
@ ACTKEYS_SNAP_NEAREST_SECOND
@ ACTKEYS_SNAP_NEAREST_FRAME
@ ACTKEYS_SNAP_NEAREST_MARKER
static bool actkeys_channels_get_selected_extents(bAnimContext *ac, float *r_min, float *r_max)
void ACTION_OT_bake_keys(wmOperatorType *ot)
float ANIM_UI_get_channel_height()
void BKE_fcurve_merge_duplicate_keys(FCurve *fcu, const int sel_flag, const bool use_handle)
static const EnumPropertyItem prop_actkeys_snap_types[]
bool ED_operator_action_active(bContext *C)
static bool copy_action_keys(bAnimContext *ac)
void WM_operator_properties_confirm_or_exec(wmOperatorType *ot)
static wmOperatorStatus actkeys_snap_exec(bContext *C, wmOperator *op)
float ANIM_UI_get_first_channel_top(View2D *v2d)
@ GP_TOOL_FLAG_RETAIN_LAST
@ ACHANNEL_SETTING_SELECT
BLI_INLINE int BLI_rcti_size_y(const struct rcti *rct)
bool copy_animedit_keys(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data)
void ANIM_center_frame(bContext *C, int smooth_viewtx)
bool ED_gpencil_anim_copybuf_copy(bAnimContext *ac)
size_t ANIM_animdata_filter(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, const eAnimFilter_Flags filter_mode, void *data, const eAnimCont_Types datatype)
@ ANIMFILTER_LIST_VISIBLE
@ ANIMFILTER_DATA_VISIBLE
@ ANIMFILTER_LIST_CHANNELS
void BKE_fcurve_handles_recalc(FCurve &fcu)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
static void bake_action_keys(bAnimContext *ac)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
void ACTION_OT_handle_type(wmOperatorType *ot)
static wmOperatorStatus actkeys_viewall(bContext *C, const bool only_sel)
void ANIM_deselect_keys_in_animation_editors(bContext *C)
static bool duplicate_action_keys(bAnimContext *ac)
void ACTION_OT_copy(wmOperatorType *ot)
const EnumPropertyItem rna_enum_beztriple_interpolation_easing_items[]
bool ED_gpencil_layer_frame_select_check(const bGPDlayer *gpl)
const EnumPropertyItem rna_enum_beztriple_keyframe_type_items[]
TimeMarker * ED_markers_get_first_selected(ListBaseT< TimeMarker > *markers)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
void ED_gpencil_layer_frames_keytype_set(bGPDlayer *gpl, short type)
void ACTION_OT_previewrange_set(wmOperatorType *ot)
ToolSettings * CTX_data_tool_settings(const bContext *C)
static void insert_action_keys(bAnimContext *ac, short mode)
bool ED_gpencil_anim_copybuf_paste(bAnimContext *ac, const short offset_mode)
bool ED_gpencil_layer_frames_delete(bGPDlayer *gpl)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
wmOperatorStatus WM_operator_confirm_ex(bContext *C, wmOperator *op, const char *title, const char *message, const char *confirm_text, ui::AlertIcon icon, bool cancel_default)
void ACTION_OT_keyframe_type(wmOperatorType *ot)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
bool ED_masklayer_frames_delete(Main *main, MaskLayer *mask_layer)
void ACTION_OT_snap(wmOperatorType *ot)
static wmOperatorStatus actkeys_bake_exec(bContext *C, wmOperator *op)
void ED_anim_ale_fcurve_delete(bAnimContext &ac, bAnimListElem &ale)
short(*)(KeyframeEditData *ked, BezTriple *bezt) KeyframeEditFunc
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
static wmOperatorStatus actkeys_viewsel_exec(bContext *C, wmOperator *)
bool ED_operator_region_action_active(bContext *C)
@ KEYFRAME_PASTE_VALUE_OFFSET_NONE
void ACTION_OT_duplicate(wmOperatorType *ot)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void ED_gpencil_layer_frames_duplicate(bGPDlayer *gpl)
void ACTION_OT_frame_jump(wmOperatorType *ot)
void ACTION_OT_markers_make_local(wmOperatorType *ot)
static void setkeytype_action_keys(bAnimContext *ac, eBezTriple_KeyframeType mode)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_annotations_tag(struct bGPdata *gpd)
const EnumPropertyItem rna_enum_beztriple_interpolation_mode_items[]
Main * CTX_data_main(const bContext *C)
static eKeyPasteError paste_action_keys(bAnimContext *ac, const eKeyPasteOffset offset_mode, const eKeyMergeMode merge_mode, bool flip)
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC
BLI_INLINE float BLI_rctf_size_x(const struct rctf *rct)
void ACTION_OT_interpolation_type(wmOperatorType *ot)
MINLINE float max_ff(float a, float b)
void ED_gpencil_layer_snap_frames(bGPDlayer *gpl, Scene *scene, short mode)
void ANIM_animdata_freelist(ListBaseT< bAnimListElem > *anim_data)
KeyframeEditFunc ANIM_editkeyframes_snap(short mode)
KeyframeEditFunc ANIM_editkeyframes_keytype(const eBezTriple_KeyframeType keyframe_type)
const EnumPropertyItem rna_enum_keyframe_paste_offset_items[]
ID_Type GS(const char *name)
static wmOperatorStatus actkeys_handletype_exec(bContext *C, wmOperator *op)
void ACTION_OT_mirror(wmOperatorType *ot)
eKeyPasteError paste_animedit_keys(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, const KeyframePasteContext &paste_context)
static void sethandles_action_keys(bAnimContext *ac, short mode)
static const EnumPropertyItem prop_actkeys_expo_types[]
static void mirror_action_keys(bAnimContext *ac, short mode)
Scene * CTX_data_scene(const bContext *C)
bScreen * CTX_wm_screen(const bContext *C)
static wmOperatorStatus actkeys_previewrange_exec(bContext *C, wmOperator *)
KeyframeEditFunc ANIM_editkeyframes_easing(short mode)
@ SACTION_POSEMARKERS_SHOW
bool BKE_fcurve_is_empty(const FCurve *fcu)
short bezt_calc_average(KeyframeEditData *ked, BezTriple *bezt)
void ACTION_OT_keyframe_insert(wmOperatorType *ot)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
static void insert_fcurve_key(bAnimContext *ac, bAnimListElem *ale, const AnimationEvalContext anim_eval_context, eInsertKeyFlags flag)
static wmOperatorStatus actkeys_clean_exec(bContext *C, wmOperator *op)
static wmOperatorStatus actkeys_paste_exec(bContext *C, wmOperator *op)
void ANIM_animdata_keyframe_callback(bAnimContext *ac, eAnimFilter_Flags filter, KeyframeEditFunc callback_fn)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
@ FCURVE_EXTRAPOLATE_CONSTANT
@ FCURVE_EXTRAPOLATE_LINEAR
static wmOperatorStatus actkeys_mirror_exec(bContext *C, wmOperator *op)
float ANIM_UI_get_channel_step()
float RNA_float_get(PointerRNA *ptr, const char *name)
static wmOperatorStatus actkeys_duplicate_exec(bContext *C, wmOperator *)
static wmOperatorStatus actkeys_framejump_exec(bContext *C, wmOperator *)
static std::string actkeys_paste_get_description(bContext *, wmOperatorType *, PointerRNA *ptr)
void ED_area_tag_redraw(ScrArea *area)
float evaluate_fcurve(const FCurve *fcu, float evaltime)
static void insert_grease_pencil_key(bAnimContext *ac, bAnimListElem *ale, const bool hold_previous)
KeyframeEditFunc ANIM_editkeyframes_mirror(short mode)
const EnumPropertyItem rna_enum_keyframe_handle_type_items[]
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< FModifier > modifiers
ListBaseT< TimeMarker > time_marker_list
eKeyPasteOffset offset_mode
eKeyPasteValueOffset value_offset_mode
ListBaseT< MaskLayerShape > splines_shapes
struct ToolSettings * toolsettings
eBezTriple_KeyframeType keyframe_type
ListBaseT< struct TimeMarker > markers
bool(*) has_setting(bAnimContext *ac, bAnimListElem *ale, eAnimChannel_Settings setting)
eAnimChannel_Role channel_role
ListBaseT< TimeMarker > * markers
eAnim_Update_Flags update
ListBaseT< bGPDframe > frames
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
std::string(*) get_description(bContext *C, wmOperatorType *ot, PointerRNA *ptr)
struct ReportList * reports