121 if (
G.is_rendering) {
169 if (op_data.
keylist !=
nullptr) {
185 for (
Strip &strip : *seqbase) {
201 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
220 switch (ale.datatype) {
249 const float timeline_frame,
254 if (!closest_column) {
257 r_targets.
append({closest_column->
cfra,
true});
261 const float timeline_frame,
264 if (scene->
markers.is_empty()) {
271 r_targets.
append({nearest_marker,
true});
275 const float timeline_frame,
279 const int start_frame = scene->
r.
sfra;
281 scene,
step, timeline_frame - start_frame) +
283 r_targets.
append({snap_frame,
false});
287 const float timeline_frame,
291 const int start_frame = scene->
r.
sfra;
292 const float snap_frame = (
round((timeline_frame - start_frame) /
float(
step)) *
step) +
294 r_targets.
append({snap_frame,
false});
298 const float timeline_frame,
300 float *r_best_distance)
302 if (
abs(
position - timeline_frame) < *r_best_distance) {
309 const float timeline_frame,
319 strip.right_handle(scene), timeline_frame, &best_frame, &best_distance);
323 if (best_distance !=
FLT_MAX) {
324 r_targets.
append({best_frame,
true});
329 const float timeline_frame,
338 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
352 if (
abs(strip.
start - timeline_frame) < best_distance) {
353 best_distance =
abs(strip.
start - timeline_frame);
354 best_frame = strip.
start;
356 if (
abs(strip.
end - timeline_frame) < best_distance) {
357 best_distance =
abs(strip.
end - timeline_frame);
358 best_frame = strip.
end;
366 r_targets.
append({best_frame,
true});
374 const float timeline_frame)
441 const float timeline_frame)
469 const float timeline_frame)
531 if (
abs(target.pos - frame) <
abs(snap_frame - frame)) {
532 snap_frame = target.pos;
544 if (target.use_snap_treshold) {
547 if (
abs(target.pos - frame) <
abs(snap_frame - frame)) {
548 snap_frame = target.pos;
569 const int old_frame = scene->
r.
cfra;
570 const float old_subframe = scene->
r.
subframe;
582 scene->
r.
cfra = int(frame);
590 if (screen->animtimer) {
591 wmTimer *wt = screen->animtimer;
601 const bool frame_changed = (old_frame != scene->
r.
cfra) || (old_subframe != scene->
r.
subframe);
602 if (frame_changed || always_update) {
771 if (sseq !=
nullptr) {
794 switch (event->
type) {
849 status.
item(
IFACE_(
"Toggle Snapping"), ICON_EVENT_CTRL);
866 if (sseq !=
nullptr) {
894 ot->
name =
"Change Frame";
895 ot->
idname =
"ANIM_OT_change_frame";
896 ot->
description =
"Interactively change the current frame number";
917 "pass_through_on_strip_handles",
919 "Pass Through on Strip Handles",
920 "Allow another operator to operate on strip handles");
934 if (
G.is_rendering) {
956 if (scene ==
nullptr) {
960 frame = scene->
r.
cfra;
968 int frame_clamped = frame;
970 if (frame_clamped != frame) {
973 frame = frame_clamped;
974 scene->
r.
sfra = frame;
977 if (scene->playback_end() < frame) {
982 scene->
r.
efra = frame;
994 ot->
name =
"Set Start Frame";
995 ot->
idname =
"ANIM_OT_start_frame_set";
996 ot->
description =
"Set the current frame as the preview or scene start frame";
1011 if (scene ==
nullptr) {
1015 frame = scene->
r.
cfra;
1023 int frame_clamped = frame;
1025 if (frame_clamped != frame) {
1028 frame = frame_clamped;
1029 scene->
r.
efra = frame;
1032 if (scene->playback_start() > frame) {
1037 scene->
r.
sfra = frame;
1049 ot->
name =
"Set End Frame";
1050 ot->
idname =
"ANIM_OT_end_frame_set";
1051 ot->
description =
"Set the current frame as the preview or scene end frame";
1090 efra = std::max(efra, sfra);
1105 ot->
name =
"Set Preview Range";
1106 ot->
idname =
"ANIM_OT_previewrange_set";
1107 ot->
description =
"Interactively define frame range used for playback";
1140 if (
ELEM(
nullptr, scene, curarea)) {
1160 ot->
name =
"Clear Preview Range";
1161 ot->
idname =
"ANIM_OT_previewrange_clear";
1187 ListBaseT<bAnimListElem> anim_data = {
nullptr,
nullptr};
1194 printf(
"==============================================\n");
1195 printf(
"Animation Channel List:\n");
1196 printf(
"----------------------------------------------\n");
1202 printf(
"==============================================\n");
1210 ot->
name =
"Debug Channel List";
1211 ot->
idname =
"ANIM_OT_debug_channel_list";
1213 "Log the channel list info in the terminal. This operator is only available in debug builds "
1251 ot->
name =
"Frame Scene/Preview Range";
1252 ot->
idname =
"ANIM_OT_scene_range_frame";
1254 "Reset the horizontal view to the current scene frame range, taking the preview range into "
1255 "account if it is active";
1303 int moved_slots_count = 0;
1306 for (
ID *related_id : related_ids) {
1311 if (action == &active_action) {
1327 moved_slots_count++;
1333 if (moved_slots_count > 0) {
1336 "Moved %i slot(s) into the action of the active object",
1342 "Failed to merge any animation. Note that NLA strips cannot be merged");
1359 ot->
name =
"Merge Animation";
1360 ot->
idname =
"ANIM_OT_merge_animation";
1362 "Merge the animation of the selected objects into the action of the active object. Actions "
1363 "are not deleted by this, but might end up with zero users";
1383 if (!adt || !adt->
action || adt->
action != &old_action) {
1399 if (!active_object) {
1403 if (!adt || !adt->
action) {
1411 if (failures.
size() == 0) {
1414 std::string report =
"Replacing the action failed on: ";
1415 for (
ID *
id : failures) {
1416 report +=
id->name + 2;
1456 if (!old_action || !new_action) {
1459 "Invalid old/new Action pair ('%s' / '%s')",
1460 old_action ? old_action->
id.
name + 2 :
"Invalid UID",
1461 new_action ? new_action->
id.
name + 2 :
"Invalid UID");
1464 if (old_action == new_action) {
1467 "Cannot replace Action with itself ('%s')",
1468 old_action->
id.
name + 2);
1508 ot->
name =
"Replace Action";
1509 ot->
idname =
"ANIM_OT_replace_action";
1511 "Swap all users of one action to another one. The normal action slot assignment rules "
1512 "apply. This ignores the NLA and Action Constraints";
1527 "Old Action's session uid to replace",
1538 "Replacement Action",
1539 "The replacement Action's session uid to remap all selected Action's users to",
1585 ot->
name =
"Replace with Duplicate Action";
1586 ot->
idname =
"ANIM_OT_replace_action_duplicate";
1588 "Duplicates the action of the active object and swaps all users of that action to that "
1603 "Old Action's session uid to replace",
1616 if (!old_dna_action) {
1655 ot->
name =
"Replace with New Action";
1656 ot->
idname =
"ANIM_OT_replace_action_new";
1658 "Swap all users of one action to a new action. This ignores the NLA and Action Constraints";
1672 "Old Action's session uid to replace",
1690 int unmodified_count = 0;
1691 std::string unmodified_message;
1692 for (
const auto &[identifier, value] : num_slot_users_to_visit.
items()) {
1696 if (!unmodified_message.empty()) {
1697 unmodified_message.append(
", ");
1699 if (identifier.second.is_empty()) {
1701 unmodified_message.append(identifier.first->identifier_without_prefix());
1704 unmodified_message.append(identifier.second);
1707 if (unmodified_count == 3) {
1710 unmodified_message.append(
", ...");
1714 return unmodified_message;
1722 ID *prev_id =
nullptr;
1726 int skipped_datablocks = 0;
1743 ID *owner_id = transformable.owner_id();
1745 skipped_datablocks++;
1751 skipped_actions.
add(&action);
1757 int *unmodified_count = num_slot_users_to_visit.
lookup_ptr(identifier);
1758 if (unmodified_count) {
1759 (*unmodified_count)--;
1765 const int slot_user_count = slot->
users(*bmain).size();
1766 num_slot_users_to_visit.
add(identifier, slot_user_count - 1);
1769 if (!data_map.
contains({&action, slot_handle})) {
1771 data_map.
add({&action, slot_handle}, std::move(fcurve_map));
1783 ed::Rotation current_rotation = transformable.get_rotation();
1784 transformable.set_rotation_mode(mode);
1785 transformable.set_rotation(current_rotation.converted_to_mode(mode));
1787 if (prev_id != owner_id) {
1795 if (!unmodified_message.empty()) {
1798 "Multiple users of an action and not all were selected: %s",
1799 unmodified_message.data());
1802 if (skipped_datablocks > 0) {
1805 "Skipped animated data-blocks because they cannot be edited: %d",
1806 skipped_datablocks);
1809 if (skipped_actions.
size() > 0) {
1812 "Skipped actions because they cannot be edited: %" PRId64,
1813 skipped_actions.
size());
1828 ot->
name =
"Convert Rotation Mode";
1829 ot->
idname =
"ANIM_OT_rotation_mode_convert";
1831 "On all selected, change the rotation mode and convert any existing animation into that new "
1845 "The rotation mode to convert the selection to");
1850 "Creates a key on every frame before conversion so interpolation is preserved "
Functions and classes to work with Actions.
Functionality to iterate an Action in various ways.
Functions to work with AnimData.
#define FOREACH_MAIN_ID_END
#define FOREACH_MAIN_ID_BEGIN(_bmain, _id)
#define CTX_IFACE_(context, msgid)
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
ID and Library types, which are fundamental for SDNA.
#define ID_IS_EDITABLE(_id)
#define ID_IS_OVERRIDE_LIBRARY(_id)
#define FRAMENUMBER_MIN_CLAMP(cfra)
#define BLI_assert_unreachable()
#define UNUSED_VARS_NDEBUG(...)
std::optional< PreScrubbingState > pre_scrubbing
const Value * lookup_ptr(const Key &key) const
bool add(const Key &key, const Value &value)
const Value & lookup(const Key &key) const
bool contains(const Key &key) const
ItemIterator items() const &
constexpr int64_t size() const
void append(const T &value)
void item(std::string text, int icon1, int icon2=0)
Span< const Slot * > slots() const
void slot_identifier_define(Slot &slot, StringRefNull new_identifier)
Slot * slot_for_handle(slot_handle_t handle)
Span< ID * > users(Main &bmain) const
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
decltype(blender::ActionSlot::handle) slot_handle_t
Vector< ID * > find_related_ids(Main &bmain, ID &id)
bool foreach_action_slot_use(const ID &animated_id, FunctionRef< bool(Action &action, slot_handle_t slot_handle)> callback)
Action & action_add(Main &bmain, StringRefNull name)
Action * get_action(ID &animated_id)
bool assign_action(bAction *action, ID &animated_id)
void move_slot(Main &bmain, Slot &slot, Action &from_action, Action &to_action)
Scene * scene_or_sequencer_scene_from_context(const bContext &C)
bNodeTree * node_tree_from_id(ID *id)
void POSELIB_OT_asset_delete(wmOperatorType *ot)
void POSELIB_OT_create_pose_asset(wmOperatorType *ot)
void ANIM_OT_world_space_paste(wmOperatorType *ot)
void POSELIB_OT_asset_modify(wmOperatorType *ot)
void ANIM_OT_world_space_copy(wmOperatorType *ot)
ListBaseT< bAnimListElem > get_editable_fcurves(bAnimContext &ac)
bool check_show_strip(const SpaceSeq &sseq)
StripSelection pick_strip_and_handle(const struct Scene *scene, const View2D *v2d, float mouse_co[2])
void special_preview_clear()
void sync_active_scene_and_time_with_scene_strip(bContext &C)
Strip * special_preview_get()
void special_preview_set(bContext *C, const int mval[2])
Vector< ed::AnimTransformable > selected_transformables_from_context(bContext &C)
ListBaseT< Strip > * active_seqbase_get(const Editing *ed)
Editing * editing_get(const Scene *scene)
void template_ID_session_uid(Layout &layout, bContext *C, PointerRNA *ptr, StringRefNull propname, short idcode)
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
float view2d_region_to_view_x(const View2D *v2d, float x)
void view2d_sync(bScreen *screen, ScrArea *area, View2D *v2dcur, int flag)
View2D * view2d_fromcontext(const bContext *C)
void WM_main_add_notifier(uint type, void *reference)
static void replace_action_common_failure_report(const Span< ID * > failures, ReportList &reports)
static void append_nla_strip_snap_target(bContext *C, const float timeline_frame, Vector< SnapTarget > &r_targets)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
static bool merge_actions_selection_poll(bContext *C)
static wmOperatorStatus previewrange_define_exec(bContext *C, wmOperator *op)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
void grease_pencil_cels_to_keylist(AnimData *, const GreasePencilLayer *gpl, AnimKeylist *keylist, int)
static wmOperatorStatus replace_action_new_invoke(bContext *C, wmOperator *op, const blender::wmEvent *)
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
bool ED_operator_animview_active(bContext *C)
ScrArea * CTX_wm_area(const bContext *C)
static void replace_action_ui(bContext *C, wmOperator *op)
std::pair< const animrig::Slot *, StringRefNull > SlotTransformableID
int RNA_enum_get(PointerRNA *ptr, const char *name)
void gpl_to_keylist(bDopeSheet *, bGPDlayer *gpl, AnimKeylist *keylist)
@ RPT_ERROR_INVALID_INPUT
Scene * CTX_data_sequencer_scene(const bContext *C)
void ANIM_OT_keyframe_insert_by_name(wmOperatorType *ot)
void BKE_scene_frame_clamp_for_playback(Scene *scene, bool is_playing_forward)
static void ensure_change_frame_keylist(bContext *C, FrameChangeModalData &op_data)
static bool need_extra_redraw_after_scrubbing_ends(bContext *C)
wmOperatorStatus WM_gesture_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus replace_action_invoke(bContext *C, wmOperator *op, const blender::wmEvent *)
void ED_keymap_anim(wmKeyConfig *keyconf)
MINLINE int round_fl_to_int(float a)
void ANIM_OT_keyframe_delete_by_name(wmOperatorType *ot)
void sequencer_strip_to_keylist(const Strip &strip, AnimKeylist &keylist, Scene &scene)
ID * BKE_libblock_find_session_uid(Main *bmain, short type, uint32_t session_uid)
static void ANIM_OT_scene_range_frame(wmOperatorType *ot)
void ANIM_OT_driver_button_remove(wmOperatorType *ot)
static void ANIM_OT_replace_action_duplicate(wmOperatorType *ot)
static void append_second_snap_target(Scene *scene, const float timeline_frame, const int step, Vector< SnapTarget > &r_targets)
static void replace_action_on_id(ID *id, const bAction &old_action, bAction &new_action, Vector< ID * > &r_failures)
static void ANIM_OT_change_frame(wmOperatorType *ot)
void ANIM_OT_keying_set_path_remove(wmOperatorType *ot)
static bool replace_action_common_poll(bContext *C)
bool ED_time_scrub_event_in_region(const ARegion *region, const wmEvent *event)
static wmOperatorStatus merge_actions_selection_exec(bContext *C, wmOperator *op)
static wmOperatorStatus previewrange_clear_exec(bContext *C, wmOperator *)
const EnumPropertyItem rna_enum_object_rotation_mode_items[]
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
static float get_snap_threshold(const ToolSettings *tool_settings, const ARegion *region)
bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
void WM_operator_properties_border(wmOperatorType *ot)
void ANIM_OT_keyframe_delete_button(wmOperatorType *ot)
void ANIM_OT_keying_set_active_set(wmOperatorType *ot)
int RNA_int_get(PointerRNA *ptr, const char *name)
void ANIM_OT_keyingset_button_add(wmOperatorType *ot)
enum eContextObjectMode CTX_data_mode_enum(const bContext *C)
rctf ANIM_frame_range_view2d_add_xmargin(const View2D &view_2d, const rctf view_rect)
static wmOperatorStatus replace_action_new_exec(bContext *C, wmOperator *op)
SpaceSeq * CTX_wm_space_seq(const bContext *C)
AnimData * BKE_animdata_ensure_id(ID *id)
void ED_operatortypes_anim()
ScenePlaybackRange BKE_scene_get_playback_range(const Scene *scene)
static void append_marker_snap_target(Scene *scene, const float timeline_frame, Vector< SnapTarget > &r_targets)
static std::string change_frame_get_name(wmOperatorType *, PointerRNA *ptr)
static void ANIM_OT_rotation_mode_convert(wmOperatorType *ot)
AnimData * BKE_animdata_from_id(const ID *id)
static void ANIM_OT_replace_action_new(wmOperatorType *ot)
void ANIM_OT_keyingset_button_remove(wmOperatorType *ot)
void ANIM_id_update(Main *bmain, ID *id)
bool ED_operator_region_animview_active(bContext *C)
void fcurve_to_keylist(AnimData *adt, FCurve *fcu, AnimKeylist *keylist, const int saction_flag, float2 range, const bool use_nla_remapping)
static wmOperatorStatus debug_channel_list_exec(bContext *C, wmOperator *)
ChannelbagFCurveMap build_rotation_fcurve_map(animrig::Action &action, const animrig::slot_handle_t slot_handle)
void CTX_wm_operator_poll_msg_set(bContext *C, const char *msg)
void DEG_id_tag_update_ex(Main *bmain, ID *id, unsigned int flags)
static wmOperatorStatus rotation_mode_convert_exec(bContext *C, wmOperator *op)
size_t ANIM_animdata_filter(bAnimContext *ac, ListBaseT< bAnimListElem > *anim_data, const eAnimFilter_Flags filter_mode, void *data, const eAnimCont_Types datatype)
std::optional< PreScrubbingState > ED_screen_scrubbing_enable(bContext &C, bScreen &screen)
@ ANIMFILTER_LIST_VISIBLE
@ ANIMFILTER_DATA_VISIBLE
@ ANIMFILTER_LIST_CHANNELS
static bool use_playhead_snapping(bContext *C)
void DEG_id_tag_update(ID *id, unsigned int flags)
float BKE_scene_frame_get(const Scene *scene)
static Vector< SnapTarget > action_get_snap_targets(bContext *C, FrameChangeModalData &op_data, const float timeline_frame)
void BKE_report(ReportList *reports, eReportType type, const char *message)
bool convert_rotation_keys(const ed::AnimTransformable &transformable, ChannelbagFCurveMap &channelbag_fcurve_map, const eRotationModes to_mode)
static Vector< ID * > replace_action(Main &bmain, const animrig::Action &old_action, animrig::Action &new_action)
wmWindowManager * CTX_wm_manager(const bContext *C)
static float frame_from_event(bContext *C, const wmEvent *event)
static wmOperatorStatus anim_set_sfra_exec(bContext *C, wmOperator *op)
void ANIM_OT_keyframe_delete_v3d(wmOperatorType *ot)
void ANIM_OT_keying_set_path_add(wmOperatorType *ot)
void WM_operator_properties_border_to_rcti(wmOperator *op, rcti *r_rect)
static wmOperatorStatus change_frame_exec(bContext *C, wmOperator *op)
void ANIM_OT_keyframe_delete_vse(wmOperatorType *ot)
static wmOperatorStatus scene_range_frame_exec(bContext *C, wmOperator *)
void ED_keylist_prepare_for_direct_access(AnimKeylist *keylist)
static bool sequencer_is_mouse_over_handle(const bContext *C, const wmEvent *event)
static wmOperatorStatus change_frame_invoke(bContext *C, wmOperator *op, const wmEvent *event)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
static void change_frame_cancel(bContext *C, wmOperator *op)
AnimKeylist * ED_keylist_create()
static void change_frame_restore_initial(bContext *C, wmOperator *op)
static void ANIM_OT_start_frame_set(wmOperatorType *ot)
wmOperatorStatus WM_operator_props_dialog_popup(bContext *C, wmOperator *op, int width, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message, const bool show_icon)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
static float apply_frame_snap(bContext *C, FrameChangeModalData &op_data, const float frame)
static wmOperatorStatus replace_action_duplicate_exec(bContext *C, wmOperator *op)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void RNA_float_set(PointerRNA *ptr, const char *name, float value)
static wmOperatorStatus change_frame_modal(bContext *C, wmOperator *op, const wmEvent *event)
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
@ SCER_LOCK_FRAME_SELECTION
static void change_frame_seq_preview_end(SpaceSeq *sseq)
void ANIM_OT_keyframe_insert_menu(wmOperatorType *ot)
void ANIM_OT_copy_driver_button(wmOperatorType *ot)
static void change_frame_seq_preview_begin(bContext *C, const wmEvent *event, SpaceSeq *sseq)
static Vector< SnapTarget > nla_get_snap_targets(bContext *C, const float timeline_frame)
static void ANIM_OT_previewrange_clear(wmOperatorType *ot)
wmEventHandler_Op * WM_event_add_modal_handler(bContext *C, wmOperator *op)
wmOperatorStatus WM_gesture_box_modal(bContext *C, wmOperator *op, const wmEvent *event)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
Map< animrig::Channelbag *, RNAFCurveMap > ChannelbagFCurveMap
void bake_rotation_fcurves(const ChannelbagFCurveMap &channelbag_fcurve_map, const ed::AnimTransformable &transformable)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void ANIM_OT_keyframe_clear_v3d(wmOperatorType *ot)
Main * CTX_data_main(const bContext *C)
static Vector< SnapTarget > seq_get_snap_targets(bContext *C, FrameChangeModalData &op_data, const float timeline_frame)
void ANIM_channel_debug_print_info(bAnimContext &ac, bAnimListElem *ale, short indent_level)
static void ANIM_OT_previewrange_set(wmOperatorType *ot)
static void ANIM_OT_replace_action(wmOperatorType *ot)
static wmOperatorStatus anim_set_efra_exec(bContext *C, wmOperator *op)
int ED_markers_find_nearest_marker_time(ListBaseT< TimeMarker > *markers, float x)
void ANIM_OT_keyframe_clear_vse(wmOperatorType *ot)
void ANIM_animdata_freelist(ListBaseT< bAnimListElem > *anim_data)
void ANIM_OT_keying_set_remove(wmOperatorType *ot)
@ ID_RECALC_ANIMATION_NO_FLUSH
float BKE_scene_frame_snap_by_seconds(const Scene *scene, double interval_in_seconds, float frame)
void WM_gesture_box_cancel(bContext *C, wmOperator *op)
static void seq_frame_snap_update_best(const float position, const float timeline_frame, float *r_best_frame, float *r_best_distance)
void ANIM_OT_keying_set_add(wmOperatorType *ot)
static void append_frame_snap_target(const Scene *scene, const float timeline_frame, const int step, Vector< SnapTarget > &r_targets)
static void ANIM_OT_merge_animation(wmOperatorType *ot)
static void ANIM_OT_end_frame_set(wmOperatorType *ot)
void ANIM_OT_keyframe_insert(wmOperatorType *ot)
void ED_keylist_free(AnimKeylist *keylist)
void DEG_relations_tag_update(Main *bmain)
static std::string visited_slot_users_to_message(const Map< SlotTransformableID, int > &num_slot_users_to_visit)
static void append_keyframe_snap_target(bContext *C, FrameChangeModalData &op_data, const float timeline_frame, Vector< SnapTarget > &r_targets)
Scene * CTX_data_scene(const bContext *C)
bScreen * CTX_wm_screen(const bContext *C)
const ActKeyColumn * ED_keylist_find_closest(const AnimKeylist *keylist, const float cfra)
void ED_screen_scrubbing_disable(bContext &C, bScreen &screen, const std::optional< PreScrubbingState > &resume)
bool CTX_data_selected_objects(const bContext *C, Vector< PointerRNA > *list)
void ANIM_OT_keyframe_insert_button(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 append_sequencer_strip_snap_target(const Scene *scene, const float timeline_frame, Vector< SnapTarget > &r_targets)
void ANIM_OT_keyframe_delete(wmOperatorType *ot)
bool BKE_id_is_editable(const Main *bmain, const ID *id)
void ANIM_OT_driver_button_edit(wmOperatorType *ot)
ID * BKE_id_copy(Main *bmain, const ID *id)
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)
Object * CTX_data_active_object(const bContext *C)
void ANIM_OT_driver_button_add(wmOperatorType *ot)
static wmOperatorStatus replace_action_duplicate_invoke(bContext *C, wmOperator *op, const blender::wmEvent *)
void ANIM_OT_paste_driver_button(wmOperatorType *ot)
ARegion * CTX_wm_region(const bContext *C)
static void ANIM_OT_debug_channel_list(wmOperatorType *ot)
void ED_workspace_status_text(bContext *C, const char *str)
static bool change_frame_poll(bContext *C)
float RNA_float_get(PointerRNA *ptr, const char *name)
static bool anim_set_end_frames_poll(bContext *C)
void ANIM_OT_keyframe_clear_button(wmOperatorType *ot)
static void change_frame_apply(bContext *C, wmOperator *op, const bool always_update)
static wmOperatorStatus replace_action_exec(bContext *C, wmOperator *op)
bScreen * ED_screen_animation_playing(const wmWindowManager *wm)
static bool rotation_mode_convert_poll(bContext *C)
void ED_area_tag_redraw(ScrArea *area)
static Vector< SnapTarget > graph_get_snap_targets(bContext *C, FrameChangeModalData &op_data, const float timeline_frame)
ListBaseT< NlaStrip > strips
ListBaseT< TimeMarker > markers
struct ToolSettings * toolsettings
ListBaseT< SpaceLink > spacedata
void use_property_split_set(bool is_sep)
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
void(*) cancel(bContext *C, wmOperator *op)
void(*) ui(bContext *C, wmOperator *op)
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) modal(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
std::string(*) get_name(wmOperatorType *ot, PointerRNA *ptr)
struct ReportList * reports