Blender
V3.3
|
#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.
|
static |
Definition at line 325 of file anim_ops.c.
References wmOperatorType::cancel, change_frame_cancel(), change_frame_exec(), change_frame_invoke(), change_frame_modal(), change_frame_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAXFRAME, MINAFRAME, wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_UNDO_GROUPED, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float(), RNA_def_property_flag(), wmOperatorType::srna, and wmOperatorType::undo_group.
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 471 of file anim_ops.c.
References anim_set_efra_exec(), anim_set_end_frames_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 573 of file anim_ops.c.
References wmOperatorType::description, ED_operator_animview_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and previewrange_clear_exec().
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 522 of file anim_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_animview_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, previewrange_define_exec(), WM_gesture_box_cancel(), WM_gesture_box_invoke(), WM_gesture_box_modal(), and WM_operator_properties_border().
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 416 of file anim_ops.c.
References anim_set_end_frames_poll(), anim_set_sfra_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 431 of file anim_ops.c.
References BKE_report(), C, RenderData::cfra, CLAMP, CTX_data_scene(), RenderData::efra, MAXFRAME, MINFRAME, NC_SCENE, ND_FRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RenderData::pefra, PRVRANGEON, RenderData::psfra, PSFRA, Scene::r, wmOperator::reports, RPT_WARNING, scene, RenderData::sfra, and WM_event_add_notifier().
Referenced by ANIM_OT_end_frame_set().
Definition at line 354 of file anim_ops.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_operator_poll_msg_set(), ELEM, G, SPACE_ACTION, SPACE_CLIP, SPACE_GRAPH, SPACE_NLA, and SPACE_SEQ.
Referenced by ANIM_OT_end_frame_set(), and ANIM_OT_start_frame_set().
|
static |
Definition at line 376 of file anim_ops.c.
References BKE_report(), C, RenderData::cfra, CLAMP, CTX_data_scene(), RenderData::efra, MAXFRAME, MINFRAME, NC_SCENE, ND_FRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RenderData::pefra, PEFRA, PRVRANGEON, RenderData::psfra, Scene::r, wmOperator::reports, RPT_WARNING, scene, RenderData::sfra, and WM_event_add_notifier().
Referenced by ANIM_OT_start_frame_set().
|
static |
Definition at line 128 of file anim_ops.c.
References BKE_scene_frame_snap_by_seconds(), C, RenderData::cfra, CTX_data_scene(), CTX_wm_space_seq(), DEG_id_tag_update(), RenderData::flag, FRAMENUMBER_MIN_CLAMP, Scene::id, ID_RECALC_FRAME_CHANGE, NC_SCENE, ND_FRAME, NULL, wmOperator::ptr, Scene::r, RNA_boolean_get(), RNA_float_get(), round_fl_to_int(), scene, SCER_SHOW_SUBFRAME, SEQ_editing_get(), seq_frame_apply_snap(), RenderData::subframe, and WM_event_add_notifier().
Referenced by change_frame_exec(), change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 267 of file anim_ops.c.
References C, and change_frame_seq_preview_end().
Referenced by ANIM_OT_change_frame().
|
static |
Definition at line 162 of file anim_ops.c.
References C, change_frame_apply(), and OPERATOR_FINISHED.
Referenced by ANIM_OT_change_frame().
|
static |
Definition at line 240 of file anim_ops.c.
References C, change_frame_apply(), change_frame_seq_preview_begin(), CTX_wm_region(), CTX_wm_space_seq(), frame_from_event(), NULL, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ARegion::regiontype, RGN_TYPE_PREVIEW, RNA_boolean_set(), RNA_float_set(), use_sequencer_snapping(), and WM_event_add_modal_handler().
Referenced by ANIM_OT_change_frame().
|
static |
Definition at line 273 of file anim_ops.c.
References C, change_frame_apply(), change_frame_seq_preview_end(), EVT_ESCKEY, EVT_LEFTCTRLKEY, EVT_RIGHTCTRLKEY, frame_from_event(), KM_PRESS, KM_RELEASE, LEFTMOUSE, MIDDLEMOUSE, MOUSEMOVE, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ret, RIGHTMOUSE, RNA_boolean_set(), RNA_float_set(), wmEvent::type, use_sequencer_snapping(), and wmEvent::val.
Referenced by ANIM_OT_change_frame().
Definition at line 47 of file anim_ops.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_operator_poll_msg_set(), CTX_wm_region(), ELEM, G, SpaceGraph::mode, ARegion::regiontype, RGN_TYPE_WINDOW, SIPO_MODE_DRIVERS, SPACE_ACTION, SPACE_CLIP, SPACE_GRAPH, SPACE_NLA, and SPACE_SEQ.
Referenced by ANIM_OT_change_frame().
Definition at line 189 of file anim_ops.c.
References blender::compositor::area(), C, CTX_wm_area(), CTX_wm_region(), CTX_wm_screen(), ED_sequencer_special_preview_set(), ED_space_sequencer_check_show_strip(), ED_time_scrub_event_in_region(), wmEvent::mval, bScreen::scrubbing, and SPACE_SEQ.
Referenced by change_frame_invoke().
Definition at line 206 of file anim_ops.c.
References C, CTX_data_scene(), CTX_wm_screen(), ED_sequencer_special_preview_clear(), ED_sequencer_special_preview_get(), NC_SCENE, ND_FRAME, NULL, scene, bScreen::scrubbing, and WM_event_add_notifier().
Referenced by change_frame_cancel(), and change_frame_modal().
void ED_keymap_anim | ( | wmKeyConfig * | keyconf | ) |
Definition at line 631 of file anim_ops.c.
References WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
Definition at line 591 of file anim_ops.c.
References ANIM_OT_change_frame(), ANIM_OT_copy_driver_button(), ANIM_OT_driver_button_add(), ANIM_OT_driver_button_edit(), ANIM_OT_driver_button_remove(), ANIM_OT_end_frame_set(), ANIM_OT_keyframe_clear_button(), ANIM_OT_keyframe_clear_v3d(), ANIM_OT_keyframe_delete(), ANIM_OT_keyframe_delete_button(), ANIM_OT_keyframe_delete_by_name(), ANIM_OT_keyframe_delete_v3d(), ANIM_OT_keyframe_insert(), ANIM_OT_keyframe_insert_button(), ANIM_OT_keyframe_insert_by_name(), ANIM_OT_keyframe_insert_menu(), ANIM_OT_keying_set_active_set(), ANIM_OT_keying_set_add(), ANIM_OT_keying_set_path_add(), ANIM_OT_keying_set_path_remove(), ANIM_OT_keying_set_remove(), ANIM_OT_keyingset_button_add(), ANIM_OT_keyingset_button_remove(), ANIM_OT_paste_driver_button(), ANIM_OT_previewrange_clear(), ANIM_OT_previewrange_set(), ANIM_OT_start_frame_set(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Definition at line 172 of file anim_ops.c.
References C, CLAMP, CTX_data_scene(), CTX_wm_region(), RenderData::flag, wmEvent::mval, PEFRA, PSFRA, Scene::r, scene, SCER_LOCK_FRAME_SELECTION, UI_view2d_region_to_view_x(), and ARegion::v2d.
Referenced by change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 550 of file anim_ops.c.
References C, CTX_data_scene(), CTX_wm_area(), ED_area_tag_redraw(), ELEM, RenderData::flag, NC_SCENE, ND_FRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RenderData::pefra, RenderData::psfra, Scene::r, scene, SCER_PRV_RANGE, and WM_event_add_notifier().
Referenced by ANIM_OT_previewrange_clear().
|
static |
Definition at line 488 of file anim_ops.c.
References C, CTX_data_scene(), CTX_wm_region(), RenderData::flag, FRAMENUMBER_MIN_CLAMP, NC_SCENE, ND_FRAME, OPERATOR_FINISHED, RenderData::pefra, RenderData::psfra, Scene::r, round_fl_to_int(), scene, SCER_PRV_RANGE, UI_view2d_region_to_view_x(), ARegion::v2d, WM_event_add_notifier(), WM_operator_properties_border_to_rcti(), rcti::xmax, and rcti::xmin.
Referenced by ANIM_OT_previewrange_set().
Definition at line 103 of file anim_ops.c.
References C, MAXFRAME, scene, SEQ_active_seqbase_get(), SEQ_collection_free(), SEQ_editing_get(), seq_frame_snap_update_best(), SEQ_ITERATOR_FOREACH, SEQ_query_all_strips(), seq_snap_threshold_get_frame_distance(), SEQ_time_left_handle_frame_get(), and SEQ_time_right_handle_frame_get().
Referenced by change_frame_apply().
|
static |
Definition at line 92 of file anim_ops.c.
References blender::math::abs().
Referenced by seq_frame_apply_snap().
|
static |
Definition at line 84 of file anim_ops.c.
References C, CTX_data_scene(), CTX_wm_region(), round_fl_to_int(), SEQ_tool_settings_snap_distance_get(), UI_view2d_region_to_view_x(), and ARegion::v2d.
Referenced by seq_frame_apply_snap().
Definition at line 227 of file anim_ops.c.
References C, CTX_data_scene(), CTX_wm_space_seq(), SCE_SNAP, scene, SEQ_SNAP_CURRENT_FRAME_TO_STRIPS, SEQ_tool_settings_snap_flag_get(), ToolSettings::snap_flag_seq, and Scene::toolsettings.
Referenced by change_frame_invoke(), and change_frame_modal().