|
Blender V4.3
|
#include <cfloat>#include <cmath>#include <cstdlib>#include <cstring>#include "BLI_blenlib.h"#include "BLI_map.hh"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "DEG_depsgraph.hh"#include "DNA_anim_types.h"#include "DNA_gpencil_legacy_types.h"#include "DNA_mask_types.h"#include "DNA_scene_types.h"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "BKE_animsys.h"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_global.hh"#include "BKE_gpencil_legacy.h"#include "BKE_grease_pencil.hh"#include "BKE_nla.hh"#include "BKE_report.hh"#include "UI_interface_icons.hh"#include "UI_view2d.hh"#include "ANIM_action.hh"#include "ANIM_animdata.hh"#include "ANIM_fcurve.hh"#include "ANIM_keyframing.hh"#include "ED_anim_api.hh"#include "ED_gpencil_legacy.hh"#include "ED_grease_pencil.hh"#include "ED_keyframes_edit.hh"#include "ED_keyframing.hh"#include "ED_markers.hh"#include "ED_mask.hh"#include "ED_screen.hh"#include "WM_api.hh"#include "WM_types.hh"#include "action_intern.hh"Go to the source code of this file.
Settings: Set Extrapolation-Type Operator | |
| #define | MAKE_CYCLIC_EXPO -1 |
| #define | CLEAR_CYCLIC_EXPO -2 |
| static const EnumPropertyItem | prop_actkeys_expo_types [] |
| static void | setexpo_action_keys (bAnimContext *ac, short mode) |
| static int | actkeys_expo_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_extrapolation_type (wmOperatorType *ot) |
Keyframes: Insert Operator | |
| static const EnumPropertyItem | prop_actkeys_insertkey_types [] |
| static void | insert_gpencil_key (bAnimContext *ac, bAnimListElem *ale, const eGP_GetFrame_Mode add_frame_mode, bGPdata **gpd_old) |
| static void | insert_grease_pencil_key (bAnimContext *ac, bAnimListElem *ale, const bool hold_previous) |
| static void | insert_fcurve_key (bAnimContext *ac, bAnimListElem *ale, const AnimationEvalContext anim_eval_context, eInsertKeyFlags flag) |
| static void | insert_action_keys (bAnimContext *ac, short mode) |
| static int | actkeys_insertkey_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_keyframe_insert (wmOperatorType *ot) |
Transform: Snap Keyframes Operator | |
| static const EnumPropertyItem | prop_actkeys_snap_types [] |
| static void | snap_action_keys (bAnimContext *ac, short mode) |
| static int | actkeys_snap_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_snap (wmOperatorType *ot) |
Transform: Mirror Keyframes Operator | |
| static const EnumPropertyItem | prop_actkeys_mirror_types [] |
| static void | mirror_action_keys (bAnimContext *ac, short mode) |
| static int | actkeys_mirror_exec (bContext *C, wmOperator *op) |
| void | ACTION_OT_mirror (wmOperatorType *ot) |
| #define CLEAR_CYCLIC_EXPO -2 |
Definition at line 1372 of file action_edit.cc.
Referenced by setexpo_action_keys().
| #define MAKE_CYCLIC_EXPO -1 |
Definition at line 1371 of file action_edit.cc.
Referenced by setexpo_action_keys().
|
static |
Definition at line 97 of file action_edit.cc.
References SpaceAction::action, BLI_addtail(), BLI_remlink(), CTX_wm_space_action(), ED_context_get_markers(), ELEM, SpaceAction::flag, TimeMarker::flag, bAction::markers, markers, NC_ANIMATION, NC_SCENE, ND_MARKERS, TimeMarker::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, SACTION_POSEMARKERS_SHOW, SELECT, and WM_event_add_notifier().
Referenced by ACTION_OT_markers_make_local().
|
static |
Definition at line 71 of file action_edit.cc.
References SpaceAction::action, CTX_wm_space_action(), ED_context_get_markers(), ED_markers_get_first_selected(), ELEM, SpaceAction::flag, SpaceAction::mode, SACTCONT_ACTION, SACTCONT_SHAPEKEY, and SACTION_POSEMARKERS_SHOW.
Referenced by ACTION_OT_markers_make_local().
| void ACTION_OT_bake_keys | ( | wmOperatorType * | ot | ) |
Definition at line 1349 of file action_edit.cc.
References actkeys_bake_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_clean | ( | wmOperatorType * | ot | ) |
Definition at line 1275 of file action_edit.cc.
References actkeys_clean_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_boolean(), RNA_def_float(), and wmOperatorType::srna.
Referenced by action_operatortypes().
| void ACTION_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 626 of file action_edit.cc.
References actkeys_copy_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1194 of file action_edit.cc.
References actkeys_delete_exec(), actkeys_delete_invoke(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_confirm_or_exec().
Referenced by action_operatortypes().
| void ACTION_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 1081 of file action_edit.cc.
References actkeys_duplicate_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_easing_type | ( | wmOperatorType * | ot | ) |
Definition at line 1590 of file action_edit.cc.
References actkeys_easing_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), rna_enum_beztriple_interpolation_easing_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_extrapolation_type | ( | wmOperatorType * | ot | ) |
Definition at line 1480 of file action_edit.cc.
References actkeys_expo_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_actkeys_expo_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_frame_jump | ( | wmOperatorType * | ot | ) |
Definition at line 1894 of file action_edit.cc.
References actkeys_framejump_exec(), actkeys_framejump_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_handle_type | ( | wmOperatorType * | ot | ) |
Definition at line 1680 of file action_edit.cc.
References actkeys_handletype_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), rna_enum_keyframe_handle_type_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_interpolation_type | ( | wmOperatorType * | ot | ) |
Definition at line 1536 of file action_edit.cc.
References actkeys_ipo_exec(), BLT_I18NCONTEXT_ID_ACTION, wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), RNA_def_property_translation_context(), rna_enum_beztriple_interpolation_mode_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_keyframe_insert | ( | wmOperatorType * | ot | ) |
Definition at line 993 of file action_edit.cc.
References actkeys_insertkey_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_actkeys_insertkey_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_keyframe_type | ( | wmOperatorType * | ot | ) |
Definition at line 1775 of file action_edit.cc.
References actkeys_keytype_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), rna_enum_beztriple_keyframe_type_items, wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_markers_make_local | ( | wmOperatorType * | ot | ) |
Definition at line 133 of file action_edit.cc.
References act_markers_make_local_exec(), act_markers_make_local_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_mirror | ( | wmOperatorType * | ot | ) |
Definition at line 2176 of file action_edit.cc.
References actkeys_mirror_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_actkeys_mirror_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_paste | ( | wmOperatorType * | ot | ) |
Definition at line 725 of file action_edit.cc.
References actkeys_paste_exec(), actkeys_paste_get_description(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::get_description, wmOperatorType::idname, KEYFRAME_PASTE_MERGE_MIX, KEYFRAME_PASTE_OFFSET_CFRA_START, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), rna_enum_keyframe_paste_merge_items, rna_enum_keyframe_paste_offset_items, and wmOperatorType::srna.
Referenced by action_operatortypes().
| void ACTION_OT_previewrange_set | ( | wmOperatorType * | ot | ) |
Definition at line 297 of file action_edit.cc.
References actkeys_previewrange_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_snap | ( | wmOperatorType * | ot | ) |
Definition at line 2036 of file action_edit.cc.
References actkeys_snap_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, prop_actkeys_snap_types, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 454 of file action_edit.cc.
References actkeys_viewall_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_view_frame | ( | wmOperatorType * | ot | ) |
Definition at line 498 of file action_edit.cc.
References actkeys_view_frame_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 469 of file action_edit.cc.
References actkeys_viewsel_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by action_operatortypes().
|
static |
Definition at line 1326 of file action_edit.cc.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, bake_action_keys(), BKE_report(), bAnimContext::datatype, ELEM, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by ACTION_OT_bake_keys().
|
static |
Find the extents of the active channel
| r_min | Bottom y-extent of channel. |
| r_max | Top y-extent of channel. |
Definition at line 325 of file action_edit.cc.
References ACHANNEL_ROLE_CHANNEL, ACHANNEL_SETTING_SELECT, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_channel_get_typeinfo(), ANIM_channel_setting_get(), ANIM_UI_get_channel_height(), ANIM_UI_get_channel_step(), ANIM_UI_get_first_channel_top(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, bAnimChannelType::channel_role, bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimChannelType::has_setting, bAnimListElem::next, bAnimContext::region, and ARegion::v2d.
Referenced by actkeys_viewall().
|
static |
Definition at line 1246 of file action_edit.cc.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), clean_action_keys(), bAnimContext::datatype, ELEM, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_float_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by ACTION_OT_clean().
|
static |
Definition at line 585 of file action_edit.cc.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), copy_action_keys(), bAnimContext::datatype, ED_gpencil_anim_copybuf_copy(), get_grease_pencil_keyframe_clipboard(), blender::ed::greasepencil::grease_pencil_copy_keyframes(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and RPT_ERROR.
Referenced by ACTION_OT_copy().
|
static |
Definition at line 1160 of file action_edit.cc.
References ANIM_animdata_get_context(), delete_action_keys(), NA_REMOVED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ACTION_OT_delete(), and actkeys_delete_invoke().
|
static |
Definition at line 1180 of file action_edit.cc.
References actkeys_delete_exec(), ALERT_ICON_NONE, IFACE_, wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by ACTION_OT_delete().
|
static |
Definition at line 1061 of file action_edit.cc.
References ANIM_animdata_get_context(), duplicate_action_keys(), NA_ADDED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ACTION_OT_duplicate().
|
static |
Definition at line 1564 of file action_edit.cc.
References ANIM_animdata_get_context(), ANIM_animdata_keyframe_callback(), ANIM_editkeyframes_easing(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, NC_ANIMATION, ND_KEYFRAME_PROP, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by ACTION_OT_easing_type().
|
static |
Definition at line 1453 of file action_edit.cc.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), bAnimContext::datatype, ELEM, NC_ANIMATION, ND_KEYFRAME_PROP, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, setexpo_action_keys(), and WM_event_add_notifier().
Referenced by ACTION_OT_extrapolation_type().
|
static |
Definition at line 1811 of file action_edit.cc.
References ALE_FCURVE, ALE_GPFRAME, ALE_GREASE_PENCIL_CEL, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_get_context(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, bezt_calc_average(), BLI_assert_msg, RenderData::cfra, bAnimContext::data, bAnimContext::datatype, KeyframeEditData::f1, filter(), bGPDlayer::frames, GP_FRAME_SELECT, KeyframeEditData::i1, LISTBASE_FOREACH, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, round_fl_to_int(), bAnimContext::scene, and WM_event_add_notifier().
Referenced by ACTION_OT_frame_jump().
|
static |
Definition at line 1800 of file action_edit.cc.
References ED_operator_action_active(), and G.
Referenced by ACTION_OT_frame_jump().
|
static |
Definition at line 1653 of file action_edit.cc.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), bAnimContext::datatype, ELEM, NC_ANIMATION, ND_KEYFRAME_PROP, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, sethandles_action_keys(), and WM_event_add_notifier().
Referenced by ACTION_OT_handle_type().
|
static |
Definition at line 961 of file action_edit.cc.
References ANIM_animdata_get_context(), ANIM_deselect_keys_in_animation_editors(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), bAnimContext::datatype, insert_action_keys(), NA_ADDED, NA_EDITED, NC_ANIMATION, NC_GPENCIL, ND_DATA, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by ACTION_OT_keyframe_insert().
|
static |
Definition at line 1505 of file action_edit.cc.
References ANIM_animdata_get_context(), ANIM_animdata_keyframe_callback(), ANIM_editkeyframes_ipo(), ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, BKE_report(), bAnimContext::datatype, ELEM, NC_ANIMATION, ND_KEYFRAME_PROP, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by ACTION_OT_interpolation_type().
|
static |
Definition at line 1752 of file action_edit.cc.
References ANIM_animdata_get_context(), ANIMCONT_MASK, BKE_report(), bAnimContext::datatype, NC_ANIMATION, ND_KEYFRAME_PROP, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RPT_ERROR, setkeytype_action_keys(), and WM_event_add_notifier().
Referenced by ACTION_OT_keyframe_type().
|
static |
Definition at line 2154 of file action_edit.cc.
References ANIM_animdata_get_context(), mirror_action_keys(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by ACTION_OT_mirror().
|
static |
Definition at line 641 of file action_edit.cc.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), bAnimContext::datatype, ED_gpencil_anim_copybuf_paste(), get_grease_pencil_keyframe_clipboard(), blender::ed::greasepencil::grease_pencil_paste_keyframes(), KEYFRAME_PASTE_NOTHING_TO_PASTE, KEYFRAME_PASTE_NOWHERE_TO_PASTE, KEYFRAME_PASTE_OK, NA_EDITED, NC_ANIMATION, NC_GPENCIL, ND_DATA, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, paste_action_keys(), wmOperator::ptr, bAnimContext::reports, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by ACTION_OT_paste().
|
static |
Definition at line 712 of file action_edit.cc.
References BLI_strdup(), ptr, RNA_boolean_get(), and TIP_.
Referenced by ACTION_OT_paste().
|
static |
Definition at line 263 of file action_edit.cc.
References ANIM_animdata_get_context(), ceilf, RenderData::flag, floorf, get_keyframe_extents(), max, min, NC_SCENE, ND_FRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, bAnimContext::scene, scene, SCER_PRV_RANGE, and WM_event_add_notifier().
Referenced by ACTION_OT_previewrange_set().
|
static |
Definition at line 2014 of file action_edit.cc.
References ANIM_animdata_get_context(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), snap_action_keys(), and WM_event_add_notifier().
Referenced by ACTION_OT_snap().
|
static |
Definition at line 490 of file action_edit.cc.
References ANIM_center_frame(), OPERATOR_FINISHED, and WM_operator_smooth_viewtx_get().
Referenced by ACTION_OT_view_frame().
Definition at line 372 of file action_edit.cc.
References actkeys_channels_get_selected_extents(), ANIM_animdata_get_context(), ANIM_frame_range_view2d_add_xmargin(), BLI_rctf_size_x(), BLI_rcti_size_y(), CTX_wm_area(), CTX_wm_screen(), View2D::cur, ED_area_tag_redraw(), fabsf, float, get_keyframe_extents(), View2D::mask, max, min, OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimContext::region, UI_view2d_center_get(), UI_view2d_center_set(), UI_view2d_sync(), ARegion::v2d, V2D_LOCK_COPY, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by actkeys_viewall_exec(), and actkeys_viewsel_exec().
|
static |
Definition at line 440 of file action_edit.cc.
References actkeys_viewall().
Referenced by ACTION_OT_view_all().
|
static |
Definition at line 446 of file action_edit.cc.
References actkeys_viewall().
Referenced by ACTION_OT_view_selected().
|
static |
Definition at line 1303 of file action_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, blender::animrig::bake_fcurve_segments(), bAnimContext::data, bAnimContext::datatype, filter(), and LISTBASE_FOREACH.
Referenced by actkeys_bake_exec().
|
static |
Definition at line 1217 of file action_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, clean_fcurve(), bAnimContext::data, bAnimContext::datatype, filter(), and LISTBASE_FOREACH.
Referenced by actkeys_clean_exec().
|
static |
Definition at line 521 of file action_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_fcurves_copybuf_free(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, copy_animedit_keys(), bAnimContext::data, bAnimContext::datatype, and filter().
Referenced by actkeys_copy_exec().
|
static |
Definition at line 1102 of file action_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, blender::animrig::animdata_fcurve_delete(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, BKE_fcurve_delete_keys_selected(), BKE_fcurve_is_empty(), bAnimContext::data, bAnimContext::datatype, DEG_id_tag_update(), ED_gpencil_layer_frames_delete(), ED_masklayer_frames_delete(), filter(), GreasePencil::id, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, and blender::ed::greasepencil::remove_all_selected_frames().
Referenced by actkeys_delete_exec().
|
static |
Definition at line 1018 of file action_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_FCURVE, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, ANIMTYPE_NLACURVE, BLI_assert, bAnimContext::data, bAnimContext::datatype, duplicate_fcurve_keys(), blender::ed::greasepencil::duplicate_selected_frames(), ED_gpencil_layer_frame_select_check(), ED_gpencil_layer_frames_duplicate(), ED_masklayer_frames_duplicate(), ELEM, filter(), and LISTBASE_FOREACH.
Referenced by actkeys_duplicate_exec().
|
static |
Definition at line 579 of file action_edit.cc.
Referenced by actkeys_copy_exec(), and actkeys_paste_exec().
|
static |
Definition at line 155 of file action_edit.cc.
References ALE_GPFRAME, ALE_GREASE_PENCIL_CEL, ALE_MASKLAY, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_nla_mapping_get(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, BKE_fcurve_calc_range(), BKE_nla_tweakedit_remap(), bAnimContext::data, bAnimContext::datatype, RenderData::efra, fabsf, filter(), ListBase::first, float, bGPDlayer::frames, GP_FRAME_SELECT, LISTBASE_FOREACH, max_ff(), min, min_ff(), NLATIME_CONVERT_MAP, Scene::r, bAnimContext::scene, RenderData::sfra, MaskLayer::splines_shapes, and wrap().
Referenced by actkeys_previewrange_exec(), and actkeys_viewall().
|
static |
Definition at line 897 of file action_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIMFILTER_ACTGROUPED, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMTYPE_FCURVE, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, BKE_animsys_eval_context_construct(), BLI_assert_msg, bAnimContext::data, bAnimContext::datatype, bAnimContext::depsgraph, filter(), flag, blender::animrig::get_keyframing_flags(), GP_GETFRAME_ADD_COPY, GP_GETFRAME_ADD_NEW, GP_TOOL_FLAG_RETAIN_LAST, ToolSettings::gpencil_flags, insert_fcurve_key(), insert_gpencil_key(), insert_grease_pencil_key(), LISTBASE_FOREACH, and bAnimContext::scene.
Referenced by actkeys_insertkey_exec().
|
static |
Definition at line 831 of file action_edit.cc.
References BLI_assert, bAnimContext::bmain, bAnimListElem::bmain, bAnimListElem::fcurve_owner_id, flag, blender::animrig::CombinedKeyingResult::generate_reports(), FCurve::grp, GS, bAnimListElem::id, ID_AC, bAnimListElem::key_data, ToolSettings::keyframe_type, bActionGroup::name, ID::name, bAnimListElem::owner, bAnimContext::reports, RNA_id_pointer_create(), bAnimContext::scene, and bAnimListElem::slot_handle.
Referenced by insert_action_keys().
|
static |
Definition at line 778 of file action_edit.cc.
References BKE_gpencil_layer_frame_get(), BKE_gpencil_tag(), bAnimListElem::data, bAnimListElem::id, and bAnimContext::scene.
Referenced by insert_action_keys().
|
static |
Definition at line 794 of file action_edit.cc.
References RenderData::cfra, bAnimListElem::data, DEG_id_tag_update(), bAnimListElem::id, GreasePencil::id, ID_RECALC_GEOMETRY, Scene::r, and bAnimContext::scene.
Referenced by insert_action_keys().
|
static |
Definition at line 2082 of file action_edit.cc.
References ACTKEYS_MIRROR_MARKER, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_mirror(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIM_UPDATE_DEFAULT, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, BKE_fcurve_handles_recalc(), bAnimContext::data, bAnimContext::datatype, DEG_id_tag_update(), ED_gpencil_layer_mirror_frames(), ED_markers_get_first_selected(), KeyframeEditData::f1, filter(), float, TimeMarker::frame, GreasePencil::id, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, bAnimContext::markers, blender::ed::greasepencil::mirror_selected_frames(), bAnimContext::scene, and KeyframeEditData::scene.
Referenced by actkeys_mirror_exec().
|
static |
Definition at line 544 of file action_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, bAnimContext::data, bAnimContext::datatype, filter(), KEYFRAME_PASTE_VALUE_OFFSET_NONE, and paste_animedit_keys().
Referenced by actkeys_paste_exec().
|
static |
Definition at line 1401 of file action_edit.cc.
References add_fmodifier(), ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEFAULT, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, CLEAR_CYCLIC_EXPO, bAnimContext::data, bAnimContext::datatype, FCurve::extend, filter(), ListBase::first, FMODIFIER_TYPE_CYCLES, list_has_suitable_fmodifier(), LISTBASE_FOREACH, MAKE_CYCLIC_EXPO, FCurve::modifiers, FModifier::next, remove_fmodifier(), and FModifier::type.
Referenced by actkeys_expo_exec().
|
static |
Definition at line 1618 of file action_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_handles(), ANIM_editkeyframes_ok(), ANIM_fcurve_keyframes_loop(), ANIM_UPDATE_DEFAULT, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, BEZT_OK_SELECTED, BKE_fcurve_handles_recalc(), bAnimContext::data, bAnimContext::datatype, filter(), and LISTBASE_FOREACH.
Referenced by actkeys_handletype_exec().
|
static |
Definition at line 1706 of file action_edit.cc.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_keytype(), ANIM_fcurve_keyframes_loop(), ANIM_UPDATE_DEPS, ANIM_UPDATE_HANDLES, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_FCURVE, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, BLI_assert_msg, bAnimContext::data, bAnimContext::datatype, ED_gpencil_layer_frames_keytype_set(), filter(), LISTBASE_FOREACH, and blender::ed::greasepencil::set_selected_frames_type().
Referenced by actkeys_keytype_exec().
|
static |
Definition at line 1942 of file action_edit.cc.
References ACTKEYS_SNAP_NEAREST_MARKER, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_editkeyframes_snap(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIM_UPDATE_DEFAULT, ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_GPLAYER, ANIMTYPE_GREASE_PENCIL_LAYER, ANIMTYPE_MASKLAYER, BKE_fcurve_handles_recalc(), BKE_fcurve_merge_duplicate_keys(), bAnimContext::data, bAnimContext::datatype, DEG_id_tag_update(), ED_gpencil_layer_snap_frames(), ED_masklayer_snap_frames(), ELEM, filter(), ListBase::first, GreasePencil::id, ID_RECALC_GEOMETRY, ListBase::last, KeyframeEditData::list, LISTBASE_FOREACH, bAnimContext::markers, bAnimContext::scene, KeyframeEditData::scene, SELECT, and blender::ed::greasepencil::snap_selected_frames().
Referenced by actkeys_snap_exec().
|
static |
Definition at line 1375 of file action_edit.cc.
Referenced by ACTION_OT_extrapolation_type().
|
static |
Definition at line 770 of file action_edit.cc.
Referenced by ACTION_OT_keyframe_insert().
|
static |
Definition at line 2062 of file action_edit.cc.
Referenced by ACTION_OT_mirror().
|
static |
Definition at line 1916 of file action_edit.cc.
Referenced by ACTION_OT_snap().