|
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 change_frame_cancel(), change_frame_exec(), change_frame_invoke(), change_frame_modal(), change_frame_poll(), MAXFRAME, MINAFRAME, OPTYPE_BLOCKING, OPTYPE_GRAB_CURSOR_X, OPTYPE_UNDO_GROUPED, ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_float(), and RNA_def_property_flag().
Referenced by ED_operatortypes_anim().
|
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().
|
static |
Definition at line 553 of file anim_ops.cc.
References anim_set_efra_exec(), anim_set_end_frames_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 917 of file anim_ops.cc.
References merge_actions_selection_exec(), merge_actions_selection_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 663 of file anim_ops.cc.
References ED_operator_animview_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and previewrange_clear_exec().
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 608 of file anim_ops.cc.
References ED_operator_animview_active(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 ED_operator_animview_active(), OPTYPE_REGISTER, ot, and scene_range_frame_exec().
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 762 of file anim_ops.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_anim().
|
static |
Definition at line 513 of file anim_ops.cc.
References BKE_report(), C, RenderData::cfra, CLAMP, CTX_data_scene(), RenderData::efra, MAXFRAME, MINFRAME, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, RenderData::pefra, PRVRANGEON, PSFRA, RenderData::psfra, Scene::r, wmOperator::reports, RPT_WARNING, RenderData::sfra, and WM_event_add_notifier().
Referenced by ANIM_OT_end_frame_set().
|
static |
Definition at line 436 of file anim_ops.cc.
References C, CTX_wm_area(), CTX_wm_operator_poll_msg_set(), ELEM, G, SPACE_ACTION, SPACE_CLIP, SPACE_GRAPH, SPACE_NLA, SPACE_SEQ, and ScrArea::spacetype.
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(), C, RenderData::cfra, CLAMP, CTX_data_scene(), RenderData::efra, MAXFRAME, MINFRAME, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, PEFRA, RenderData::pefra, PRVRANGEON, RenderData::psfra, Scene::r, wmOperator::reports, RPT_WARNING, RenderData::sfra, 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(), 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, int, NC_SCENE, ND_FRAME, wmOperator::ptr, Scene::r, RNA_boolean_get(), RNA_float_get(), round_fl_to_int(), 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 324 of file anim_ops.cc.
References C, 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(), bScreen::scrubbing, and WM_event_add_notifier().
Referenced by ANIM_OT_change_frame().
|
static |
Definition at line 176 of file anim_ops.cc.
References C, change_frame_apply(), and OPERATOR_FINISHED.
Referenced by ANIM_OT_change_frame(), CLIP_OT_change_frame(), and IMAGE_OT_change_frame().
|
static |
Definition at line 255 of file anim_ops.cc.
References C, 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, ARegion::regiontype, RGN_TYPE_PREVIEW, RNA_boolean_set(), RNA_float_set(), bScreen::scrubbing, sequencer_skip_for_handle_tweak(), use_sequencer_snapping(), and WM_event_add_modal_handler().
Referenced by ANIM_OT_change_frame(), CLIP_OT_change_frame(), and IMAGE_OT_change_frame().
|
static |
Definition at line 341 of file anim_ops.cc.
References C, 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(), bScreen::scrubbing, wmEvent::type, use_sequencer_snapping(), wmEvent::val, and WM_event_add_notifier().
Referenced by ANIM_OT_change_frame(), CLIP_OT_change_frame(), and IMAGE_OT_change_frame().
|
static |
Definition at line 58 of file anim_ops.cc.
References C, CTX_wm_area(), CTX_wm_operator_poll_msg_set(), CTX_wm_region(), ELEM, ListBase::first, G, SpaceGraph::mode, ARegion::regiontype, RGN_TYPE_WINDOW, SIPO_MODE_DRIVERS, SPACE_ACTION, SPACE_CLIP, SPACE_GRAPH, SPACE_NLA, SPACE_SEQ, ScrArea::spacedata, and ScrArea::spacetype.
Referenced by ANIM_OT_change_frame(), CLIP_OT_change_frame(), and IMAGE_OT_change_frame().
Definition at line 203 of file anim_ops.cc.
References BLI_assert, C, 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(), blender::animrig::assign_action(), blender::animrig::assign_action_slot(), BKE_animdata_from_id(), BLI_assert, BLI_assert_msg, C, blender::animrig::convert_to_layered_action(), CTX_data_active_object(), CTX_data_main(), DEG_relations_tag_update(), Object::id, ID::name, NC_ANIMATION, ND_NLA_ACTCHANGE, blender::animrig::OK, OPERATOR_FINISHED, result, 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(), C, CTX_data_active_object(), CTX_wm_operator_poll_msg_set(), and Object::id.
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 C, CLAMP, CTX_data_scene(), CTX_wm_region(), RenderData::flag, wmEvent::mval, PEFRA, PSFRA, Scene::r, SCER_LOCK_FRAME_SELECTION, UI_view2d_region_to_view_x(), and ARegion::v2d.
Referenced by change_frame_invoke(), change_frame_invoke(), change_frame_invoke(), change_frame_modal(), change_frame_modal(), 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, C, CTX_data_active_object(), CTX_data_main(), CTX_data_selected_objects(), DEG_relations_tag_update(), blender::animrig::find_related_ids(), blender::animrig::get_action(), bAction::id, blender::animrig::Action::is_action_legacy(), blender::animrig::move_slot(), ID::name, NC_ANIMATION, ND_NLA_ACTCHANGE, OPERATOR_CANCELLED, OPERATOR_FINISHED, 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(), C, CTX_data_active_object(), CTX_data_main(), CTX_wm_operator_poll_msg_set(), blender::animrig::get_action(), bAction::id, and Object::id.
Referenced by ANIM_OT_merge_animation().
|
static |
Definition at line 290 of file anim_ops.cc.
References bScreen::areabase, C, CTX_data_active_object(), CTX_data_scene(), CTX_wm_manager(), CTX_wm_space_seq(), Scene::eevee, View3D::flag2, View3D::gp_flag, LISTBASE_FOREACH, OB_GPENCIL_LEGACY, SPACE_VIEW3D, SpaceLink::spacetype, SceneEEVEE::taa_samples, Object::type, 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 C, CTX_data_scene(), CTX_wm_area(), ED_area_tag_redraw(), ELEM, RenderData::flag, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, RenderData::pefra, RenderData::psfra, Scene::r, SCER_PRV_RANGE, and WM_event_add_notifier().
Referenced by ANIM_OT_previewrange_clear().
|
static |
Definition at line 574 of file anim_ops.cc.
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(), 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().
|
static |
Definition at line 685 of file anim_ops.cc.
References ANIM_frame_range_view2d_add_xmargin(), BLI_assert, C, 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(), ARegion::v2d, 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 C, 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 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 233 of file anim_ops.cc.
References C, CTX_data_scene(), ED_sequencer_pick_strip_and_handle(), wmEvent::mval, selection, SEQ_editing_get(), SEQ_HANDLE_NONE, U, 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 blender::animrig::assign_action_slot(), BLI_assert_msg, C, CTX_data_active_object(), CTX_data_main(), DEG_relations_tag_update(), blender::animrig::get_action(), Object::id, NC_ANIMATION, ND_ANIMCHAN, blender::animrig::OK, OPERATOR_FINISHED, result, 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 C, CTX_data_active_object(), CTX_wm_operator_poll_msg_set(), blender::animrig::get_action(), Object::id, 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 C, CTX_data_scene(), CTX_wm_space_seq(), SCE_SNAP, 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().