Blender  V3.3
Functions
anim_ops.c File Reference
#include <math.h>
#include <stdlib.h>
#include "BLI_sys_types.h"
#include "BLI_math_base.h"
#include "BLI_utildefines.h"
#include "DNA_scene_types.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "UI_view2d.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_anim_api.h"
#include "ED_screen.h"
#include "ED_sequencer.h"
#include "ED_time_scrub_ui.h"
#include "DEG_depsgraph.h"
#include "SEQ_iterator.h"
#include "SEQ_sequencer.h"
#include "SEQ_time.h"
#include "anim_intern.h"

Go to the source code of this file.

Functions

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)
 
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)
 
static void change_frame_seq_preview_end (bContext *C)
 
static bool use_sequencer_snapping (bContext *C)
 
static int change_frame_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static void change_frame_cancel (bContext *C, wmOperator *UNUSED(op))
 
static int change_frame_modal (bContext *C, wmOperator *op, const wmEvent *event)
 
static void ANIM_OT_change_frame (wmOperatorType *ot)
 
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)
 
static int previewrange_define_exec (bContext *C, wmOperator *op)
 
static void ANIM_OT_previewrange_set (wmOperatorType *ot)
 
static int previewrange_clear_exec (bContext *C, wmOperator *UNUSED(op))
 
static void ANIM_OT_previewrange_clear (wmOperatorType *ot)
 
void ED_operatortypes_anim (void)
 
void ED_keymap_anim (wmKeyConfig *keyconf)
 

Function Documentation

◆ ANIM_OT_change_frame()

static void ANIM_OT_change_frame ( wmOperatorType ot)
static

◆ ANIM_OT_end_frame_set()

static void ANIM_OT_end_frame_set ( wmOperatorType ot)
static

◆ ANIM_OT_previewrange_clear()

static void ANIM_OT_previewrange_clear ( wmOperatorType ot)
static

◆ ANIM_OT_previewrange_set()

static void ANIM_OT_previewrange_set ( wmOperatorType ot)
static

◆ ANIM_OT_start_frame_set()

static void ANIM_OT_start_frame_set ( wmOperatorType ot)
static

◆ anim_set_efra_exec()

static int anim_set_efra_exec ( bContext C,
wmOperator op 
)
static

◆ anim_set_end_frames_poll()

static bool anim_set_end_frames_poll ( bContext C)
static

◆ anim_set_sfra_exec()

static int anim_set_sfra_exec ( bContext C,
wmOperator op 
)
static

◆ change_frame_apply()

static void change_frame_apply ( bContext C,
wmOperator op 
)
static

◆ change_frame_cancel()

static void change_frame_cancel ( bContext C,
wmOperator UNUSEDop 
)
static

Definition at line 267 of file anim_ops.c.

References C, and change_frame_seq_preview_end().

Referenced by ANIM_OT_change_frame().

◆ change_frame_exec()

static int change_frame_exec ( bContext C,
wmOperator op 
)
static

Definition at line 162 of file anim_ops.c.

References C, change_frame_apply(), and OPERATOR_FINISHED.

Referenced by ANIM_OT_change_frame().

◆ change_frame_invoke()

static int change_frame_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ change_frame_modal()

static int change_frame_modal ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ change_frame_poll()

static bool change_frame_poll ( bContext C)
static

◆ change_frame_seq_preview_begin()

static void change_frame_seq_preview_begin ( bContext C,
const wmEvent event 
)
static

◆ change_frame_seq_preview_end()

static void change_frame_seq_preview_end ( bContext C)
static

◆ ED_keymap_anim()

void ED_keymap_anim ( wmKeyConfig keyconf)

Definition at line 631 of file anim_ops.c.

References WM_keymap_ensure().

Referenced by ED_spacetypes_keymap().

◆ ED_operatortypes_anim()

void ED_operatortypes_anim ( void  )

◆ frame_from_event()

static float frame_from_event ( bContext C,
const wmEvent event 
)
static

◆ previewrange_clear_exec()

static int previewrange_clear_exec ( bContext C,
wmOperator UNUSEDop 
)
static

◆ previewrange_define_exec()

static int previewrange_define_exec ( bContext C,
wmOperator op 
)
static

◆ seq_frame_apply_snap()

static int seq_frame_apply_snap ( bContext C,
Scene scene,
const int  timeline_frame 
)
static

◆ seq_frame_snap_update_best()

static 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 92 of file anim_ops.c.

References blender::math::abs().

Referenced by seq_frame_apply_snap().

◆ seq_snap_threshold_get_frame_distance()

static int seq_snap_threshold_get_frame_distance ( bContext C)
static

◆ use_sequencer_snapping()

static bool use_sequencer_snapping ( bContext C)
static