Blender V4.3
anim_ops.cc File Reference
#include <cmath>
#include <cstdlib>
#include "BLI_sys_types.h"
#include "BLI_math_base.h"
#include "BLI_utildefines.h"
#include "BLI_vector.hh"
#include "DNA_scene_types.h"
#include "BKE_anim_data.hh"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_query.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "UI_view2d.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_anim_api.hh"
#include "ED_screen.hh"
#include "ED_sequencer.hh"
#include "ED_time_scrub_ui.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "SEQ_iterator.hh"
#include "SEQ_sequencer.hh"
#include "SEQ_time.hh"
#include "ANIM_action.hh"
#include "ANIM_animdata.hh"
#include "anim_intern.hh"

Go to the source code of this file.

Functions

Frame Change Operator
static bool change_frame_poll (bContext *C)
static int seq_snap_threshold_get_frame_distance (bContext *C)
static void seq_frame_snap_update_best (const int position, const int timeline_frame, int *r_best_frame, int *r_best_distance)
static int seq_frame_apply_snap (bContext *C, Scene *scene, const int timeline_frame)
static void change_frame_apply (bContext *C, wmOperator *op, const bool always_update)
static int change_frame_exec (bContext *C, wmOperator *op)
static float frame_from_event (bContext *C, const wmEvent *event)
static void change_frame_seq_preview_begin (bContext *C, const wmEvent *event, SpaceSeq *sseq)
static void change_frame_seq_preview_end (SpaceSeq *sseq)
static bool use_sequencer_snapping (bContext *C)
static bool sequencer_skip_for_handle_tweak (const bContext *C, const wmEvent *event)
static int change_frame_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static bool need_extra_redraw_after_scrubbing_ends (bContext *C)
static void change_frame_cancel (bContext *C, wmOperator *)
static int change_frame_modal (bContext *C, wmOperator *op, const wmEvent *event)
static void ANIM_OT_change_frame (wmOperatorType *ot)
Start/End Frame Operators
static bool anim_set_end_frames_poll (bContext *C)
static int anim_set_sfra_exec (bContext *C, wmOperator *op)
static void ANIM_OT_start_frame_set (wmOperatorType *ot)
static int anim_set_efra_exec (bContext *C, wmOperator *op)
static void ANIM_OT_end_frame_set (wmOperatorType *ot)
Set Preview Range Operator
static int previewrange_define_exec (bContext *C, wmOperator *op)
static void ANIM_OT_previewrange_set (wmOperatorType *ot)
Clear Preview Range Operator
static int previewrange_clear_exec (bContext *C, wmOperator *)
static void ANIM_OT_previewrange_clear (wmOperatorType *ot)
Frame Scene/Preview Range Operator
static int scene_range_frame_exec (bContext *C, wmOperator *)
static void ANIM_OT_scene_range_frame (wmOperatorType *ot)
Conversion
static bool slot_new_for_object_poll (bContext *C)
static int slot_new_for_object_exec (bContext *C, wmOperator *)
static void ANIM_OT_slot_new_for_object (wmOperatorType *ot)
static int convert_action_exec (bContext *C, wmOperator *)
static bool convert_action_poll (bContext *C)
static void ANIM_OT_convert_legacy_action (wmOperatorType *ot)
static bool merge_actions_selection_poll (bContext *C)
static int merge_actions_selection_exec (bContext *C, wmOperator *op)
static void ANIM_OT_merge_animation (wmOperatorType *ot)
Registration
void ED_operatortypes_anim ()
void ED_keymap_anim (wmKeyConfig *keyconf)

Function Documentation

◆ ANIM_OT_change_frame()

◆ ANIM_OT_convert_legacy_action()

void ANIM_OT_convert_legacy_action ( wmOperatorType * ot)
static

Definition at line 832 of file anim_ops.cc.

References convert_action_exec(), convert_action_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.

Referenced by ED_operatortypes_anim().

◆ ANIM_OT_end_frame_set()

void ANIM_OT_end_frame_set ( wmOperatorType * ot)
static

◆ ANIM_OT_merge_animation()

void ANIM_OT_merge_animation ( wmOperatorType * ot)
static

◆ ANIM_OT_previewrange_clear()

void ANIM_OT_previewrange_clear ( wmOperatorType * ot)
static

◆ ANIM_OT_previewrange_set()

◆ ANIM_OT_scene_range_frame()

void ANIM_OT_scene_range_frame ( wmOperatorType * ot)
static

◆ ANIM_OT_slot_new_for_object()

void ANIM_OT_slot_new_for_object ( wmOperatorType * ot)
static

◆ ANIM_OT_start_frame_set()

void ANIM_OT_start_frame_set ( wmOperatorType * ot)
static

◆ anim_set_efra_exec()

◆ anim_set_end_frames_poll()

bool anim_set_end_frames_poll ( bContext * C)
static

◆ anim_set_sfra_exec()

◆ change_frame_apply()

◆ change_frame_cancel()

◆ change_frame_exec()

int change_frame_exec ( bContext * C,
wmOperator * op )
static

◆ change_frame_invoke()

◆ change_frame_modal()

◆ change_frame_poll()

◆ change_frame_seq_preview_begin()

void change_frame_seq_preview_begin ( bContext * C,
const wmEvent * event,
SpaceSeq * sseq )
static

◆ change_frame_seq_preview_end()

void change_frame_seq_preview_end ( SpaceSeq * sseq)
static

◆ convert_action_exec()

◆ convert_action_poll()

bool convert_action_poll ( bContext * C)
static

◆ ED_keymap_anim()

void ED_keymap_anim ( wmKeyConfig * keyconf)

Definition at line 983 of file anim_ops.cc.

References RGN_TYPE_WINDOW, SPACE_EMPTY, and WM_keymap_ensure().

Referenced by ED_spacetypes_keymap().

◆ ED_operatortypes_anim()

◆ frame_from_event()

◆ merge_actions_selection_exec()

◆ merge_actions_selection_poll()

bool merge_actions_selection_poll ( bContext * C)
static

◆ need_extra_redraw_after_scrubbing_ends()

◆ previewrange_clear_exec()

◆ previewrange_define_exec()

◆ scene_range_frame_exec()

◆ seq_frame_apply_snap()

◆ seq_frame_snap_update_best()

void seq_frame_snap_update_best ( const int position,
const int timeline_frame,
int * r_best_frame,
int * r_best_distance )
static

Definition at line 103 of file anim_ops.cc.

References abs().

Referenced by seq_frame_apply_snap().

◆ seq_snap_threshold_get_frame_distance()

int seq_snap_threshold_get_frame_distance ( bContext * C)
static

◆ sequencer_skip_for_handle_tweak()

bool sequencer_skip_for_handle_tweak ( const bContext * C,
const wmEvent * event )
static

◆ slot_new_for_object_exec()

◆ slot_new_for_object_poll()

◆ use_sequencer_snapping()