|
Blender V4.3
|
#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.
|
static |
Definition at line 403 of file anim_ops.cc.
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 832 of file anim_ops.cc.
References convert_action_exec(), convert_action_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 553 of file anim_ops.cc.
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 917 of file anim_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, merge_actions_selection_exec(), merge_actions_selection_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 663 of file anim_ops.cc.
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 608 of file anim_ops.cc.
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 704 of file anim_ops.cc.
References wmOperatorType::description, ED_operator_animview_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, ot, wmOperatorType::poll, and scene_range_frame_exec().
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 762 of file anim_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, slot_new_for_object_exec(), and slot_new_for_object_poll().
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 498 of file anim_ops.cc.
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 513 of file anim_ops.cc.
References BKE_report(), CLAMP, CTX_data_scene(), MAXFRAME, MINFRAME, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, PRVRANGEON, PSFRA, wmOperator::reports, RPT_WARNING, and WM_event_add_notifier().
Referenced by ANIM_OT_end_frame_set().
|
static |
Definition at line 436 of file anim_ops.cc.
References 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 458 of file anim_ops.cc.
References BKE_report(), CLAMP, CTX_data_scene(), MAXFRAME, MINFRAME, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, PEFRA, PRVRANGEON, wmOperator::reports, RPT_WARNING, and WM_event_add_notifier().
Referenced by ANIM_OT_start_frame_set().
|
static |
Definition at line 136 of file anim_ops.cc.
References BKE_scene_frame_snap_by_seconds(), CTX_data_scene(), CTX_wm_space_seq(), DEG_id_tag_update(), FRAMENUMBER_MIN_CLAMP, ID_RECALC_FRAME_CHANGE, int, NC_SCENE, ND_FRAME, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), round_fl_to_int(), SCER_SHOW_SUBFRAME, SEQ_editing_get(), seq_frame_apply_snap(), and WM_event_add_notifier().
Referenced by change_frame_exec(), change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 324 of file anim_ops.cc.
References change_frame_seq_preview_end(), CTX_data_scene(), CTX_wm_screen(), CTX_wm_space_seq(), NC_SCENE, ND_FRAME, need_extra_redraw_after_scrubbing_ends(), and WM_event_add_notifier().
Referenced by ANIM_OT_change_frame().
|
static |
Definition at line 176 of file anim_ops.cc.
References change_frame_apply(), and OPERATOR_FINISHED.
Referenced by ANIM_OT_change_frame().
|
static |
Definition at line 255 of file anim_ops.cc.
References change_frame_apply(), change_frame_seq_preview_begin(), CTX_wm_region(), CTX_wm_screen(), CTX_wm_space_seq(), frame_from_event(), OPERATOR_CANCELLED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RGN_TYPE_PREVIEW, RNA_boolean_set(), RNA_float_set(), sequencer_skip_for_handle_tweak(), use_sequencer_snapping(), and WM_event_add_modal_handler().
Referenced by ANIM_OT_change_frame().
|
static |
Definition at line 341 of file anim_ops.cc.
References change_frame_apply(), change_frame_seq_preview_end(), CTX_data_scene(), CTX_wm_screen(), CTX_wm_space_seq(), EVT_ESCKEY, EVT_LEFTCTRLKEY, EVT_RIGHTCTRLKEY, frame_from_event(), KM_PRESS, KM_RELEASE, LEFTMOUSE, MIDDLEMOUSE, MOUSEMOVE, NC_SCENE, ND_FRAME, need_extra_redraw_after_scrubbing_ends(), OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, ret, RIGHTMOUSE, RNA_boolean_set(), RNA_float_set(), wmEvent::type, use_sequencer_snapping(), wmEvent::val, and WM_event_add_notifier().
Referenced by ANIM_OT_change_frame().
|
static |
Definition at line 58 of file anim_ops.cc.
References CTX_wm_area(), CTX_wm_operator_poll_msg_set(), CTX_wm_region(), ELEM, G, SpaceGraph::mode, RGN_TYPE_WINDOW, SIPO_MODE_DRIVERS, SPACE_ACTION, SPACE_CLIP, SPACE_GRAPH, SPACE_NLA, and SPACE_SEQ.
Referenced by ANIM_OT_change_frame().
|
static |
Definition at line 203 of file anim_ops.cc.
References BLI_assert, CTX_wm_region(), ED_sequencer_special_preview_set(), ED_space_sequencer_check_show_strip(), ED_time_scrub_event_in_region(), and wmEvent::mval.
Referenced by change_frame_invoke().
|
static |
Definition at line 212 of file anim_ops.cc.
References BLI_assert, ED_sequencer_special_preview_clear(), ED_sequencer_special_preview_get(), and UNUSED_VARS_NDEBUG.
Referenced by change_frame_cancel(), and change_frame_modal().
|
static |
Definition at line 777 of file anim_ops.cc.
References AnimData::action, ANIM_id_update(), BKE_animdata_from_id(), BLI_assert, BLI_assert_msg, CTX_data_active_object(), CTX_data_main(), DEG_relations_tag_update(), bAction::id, ActionSlot::name, NC_ANIMATION, ND_NLA_ACTCHANGE, OPERATOR_FINISHED, blender::animrig::Action::slot(), blender::animrig::Action::slot_name_set(), blender::animrig::Action::slots(), UNUSED_VARS_NDEBUG, and WM_main_add_notifier().
Referenced by ANIM_OT_convert_legacy_action().
|
static |
Definition at line 811 of file anim_ops.cc.
References AnimData::action, BKE_animdata_from_id(), CTX_data_active_object(), and CTX_wm_operator_poll_msg_set().
Referenced by ANIM_OT_convert_legacy_action().
| 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().
| void ED_operatortypes_anim | ( | ) |
Definition at line 937 of file anim_ops.cc.
References ANIM_OT_change_frame(), ANIM_OT_convert_legacy_action(), 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_merge_animation(), ANIM_OT_paste_driver_button(), ANIM_OT_previewrange_clear(), ANIM_OT_previewrange_set(), ANIM_OT_scene_range_frame(), ANIM_OT_slot_new_for_object(), ANIM_OT_start_frame_set(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Definition at line 186 of file anim_ops.cc.
References CLAMP, CTX_data_scene(), CTX_wm_region(), wmEvent::mval, PEFRA, PSFRA, SCER_LOCK_FRAME_SELECTION, and UI_view2d_region_to_view_x().
Referenced by change_frame_invoke(), and change_frame_modal().
|
static |
Definition at line 865 of file anim_ops.cc.
References AnimData::action, Object::adt, ANIM_id_update(), BKE_animdata_ensure_id(), BKE_id_is_editable(), BKE_reportf(), BLI_assert, CTX_data_active_object(), CTX_data_main(), CTX_data_selected_objects(), DEG_relations_tag_update(), bAction::id, blender::animrig::Action::is_action_legacy(), blender::animrig::move_slot(), ID::name, NC_ANIMATION, ND_NLA_ACTCHANGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, ptr, wmOperator::reports, RPT_WARNING, selection, blender::animrig::Action::slot_for_handle(), AnimData::slot_handle, and WM_main_add_notifier().
Referenced by ANIM_OT_merge_animation().
|
static |
Definition at line 847 of file anim_ops.cc.
References BKE_id_is_editable(), CTX_data_active_object(), CTX_data_main(), CTX_wm_operator_poll_msg_set(), blender::animrig::get_action(), and bAction::id.
Referenced by ANIM_OT_merge_animation().
|
static |
Definition at line 290 of file anim_ops.cc.
References CTX_data_active_object(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_space_seq(), View3D::flag2, View3D::gp_flag, LISTBASE_FOREACH, OB_GPENCIL_LEGACY, SPACE_VIEW3D, SpaceLink::spacetype, V3D_GP_SHOW_ONION_SKIN, V3D_HIDE_OVERLAYS, wmWindowManager::windows, and WM_window_get_active_screen().
Referenced by change_frame_cancel(), and change_frame_modal().
|
static |
Definition at line 640 of file anim_ops.cc.
References CTX_data_scene(), CTX_wm_area(), ED_area_tag_redraw(), ELEM, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ANIM_OT_previewrange_clear().
|
static |
Definition at line 574 of file anim_ops.cc.
References CTX_data_scene(), CTX_wm_region(), FRAMENUMBER_MIN_CLAMP, NC_SCENE, ND_FRAME, OPERATOR_FINISHED, round_fl_to_int(), SCER_PRV_RANGE, UI_view2d_region_to_view_x(), WM_event_add_notifier(), WM_operator_properties_border_to_rcti(), rcti::xmax, and rcti::xmin.
Referenced by ANIM_OT_previewrange_set().
|
static |
Definition at line 685 of file anim_ops.cc.
References ANIM_frame_range_view2d_add_xmargin(), BLI_assert, CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), CTX_wm_screen(), View2D::cur, ED_area_tag_redraw(), OPERATOR_FINISHED, PEFRA, PSFRA, UI_view2d_sync(), V2D_LOCK_COPY, rctf::xmax, and rctf::xmin.
Referenced by ANIM_OT_scene_range_frame().
Definition at line 114 of file anim_ops.cc.
References MAXFRAME, SEQ_active_seqbase_get(), SEQ_editing_get(), seq_frame_snap_update_best(), 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().
Definition at line 95 of file anim_ops.cc.
References CTX_data_scene(), CTX_wm_region(), round_fl_to_int(), SEQ_tool_settings_snap_distance_get(), and UI_view2d_region_to_view_x().
Referenced by seq_frame_apply_snap().
Definition at line 233 of file anim_ops.cc.
References CTX_data_scene(), ED_sequencer_pick_strip_and_handle(), wmEvent::mval, SEQ_editing_get(), SEQ_HANDLE_NONE, UI_view2d_fromcontext(), UI_view2d_region_to_view(), and USER_SEQ_ED_SIMPLE_TWEAKING.
Referenced by change_frame_invoke().
|
static |
Definition at line 741 of file anim_ops.cc.
References BLI_assert_msg, CTX_data_active_object(), CTX_data_main(), DEG_relations_tag_update(), NC_ANIMATION, ND_ANIMCHAN, OPERATOR_FINISHED, blender::animrig::Action::slot_add_for_id(), UNUSED_VARS_NDEBUG, and WM_event_add_notifier().
Referenced by ANIM_OT_slot_new_for_object().
|
static |
Definition at line 724 of file anim_ops.cc.
References CTX_data_active_object(), CTX_wm_operator_poll_msg_set(), and blender::animrig::Action::is_action_layered().
Referenced by ANIM_OT_slot_new_for_object().
|
static |
Definition at line 221 of file anim_ops.cc.
References CTX_data_scene(), CTX_wm_space_seq(), SCE_SNAP, SEQ_SNAP_CURRENT_FRAME_TO_STRIPS, and SEQ_tool_settings_snap_flag_get().
Referenced by change_frame_invoke(), and change_frame_modal().