Blender
V3.3
|
#include <float.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "DNA_anim_types.h"
#include "DNA_gpencil_types.h"
#include "DNA_key_types.h"
#include "DNA_mask_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "BKE_action.h"
#include "BKE_animsys.h"
#include "BKE_context.h"
#include "BKE_fcurve.h"
#include "BKE_global.h"
#include "BKE_gpencil.h"
#include "BKE_key.h"
#include "BKE_nla.h"
#include "BKE_report.h"
#include "UI_view2d.h"
#include "ED_anim_api.h"
#include "ED_gpencil.h"
#include "ED_keyframes_edit.h"
#include "ED_keyframing.h"
#include "ED_markers.h"
#include "ED_mask.h"
#include "ED_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "action_intern.h"
Go to the source code of this file.
Macros | |
#define | MAKE_CYCLIC_EXPO -1 |
#define | CLEAR_CYCLIC_EXPO -2 |
Variables | |
static const EnumPropertyItem | prop_actkeys_insertkey_types [] |
static const EnumPropertyItem | prop_actkeys_expo_types [] |
static const EnumPropertyItem | prop_actkeys_snap_types [] |
static const EnumPropertyItem | prop_actkeys_mirror_types [] |
#define CLEAR_CYCLIC_EXPO -2 |
Definition at line 1217 of file action_edit.c.
#define MAKE_CYCLIC_EXPO -1 |
Definition at line 1216 of file action_edit.c.
|
static |
Definition at line 94 of file action_edit.c.
References SpaceAction::action, BLI_addtail(), BLI_remlink(), C, CTX_wm_space_action(), ED_context_get_markers(), ELEM, SpaceAction::flag, if(), markers, bAction::markers, NC_ANIMATION, NC_SCENE, ND_MARKERS, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, SACTION_POSEMARKERS_SHOW, SELECT, and WM_event_add_notifier().
Referenced by ACTION_OT_markers_make_local().
Definition at line 68 of file action_edit.c.
References SpaceAction::action, C, CTX_wm_space_action(), ED_context_get_markers(), ED_markers_get_first_selected(), ELEM, SpaceAction::flag, SpaceAction::mode, NULL, SACTCONT_ACTION, SACTCONT_SHAPEKEY, and SACTION_POSEMARKERS_SHOW.
Referenced by ACTION_OT_markers_make_local().
void ACTION_OT_clean | ( | wmOperatorType * | ot | ) |
Definition at line 1124 of file action_edit.c.
References actkeys_clean_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, 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 583 of file action_edit.c.
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 1052 of file action_edit.c.
References actkeys_delete_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, WM_operator_confirm_or_exec(), and WM_operator_properties_confirm_or_exec().
Referenced by action_operatortypes().
void ACTION_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 965 of file action_edit.c.
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 1428 of file action_edit.c.
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 1326 of file action_edit.c.
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 1709 of file action_edit.c.
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 1515 of file action_edit.c.
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 1378 of file action_edit.c.
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 885 of file action_edit.c.
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 1603 of file action_edit.c.
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 130 of file action_edit.c.
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 1955 of file action_edit.c.
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 677 of file action_edit.c.
References actkeys_paste_description(), actkeys_paste_exec(), 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 280 of file action_edit.c.
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_sample | ( | wmOperatorType * | ot | ) |
Definition at line 1195 of file action_edit.c.
References actkeys_sample_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 1831 of file action_edit.c.
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 432 of file action_edit.c.
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 472 of file action_edit.c.
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 447 of file action_edit.c.
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 |
Find the extents of the active channel
r_min | Bottom y-extent of channel. |
r_max | Top y-extent of channel. |
Definition at line 304 of file action_edit.c.
References ACHANNEL_FIRST_TOP, ACHANNEL_HEIGHT, ACHANNEL_ROLE_CHANNEL, ACHANNEL_SETTING_SELECT, ACHANNEL_STEP, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_channel_get_typeinfo(), ANIM_channel_setting_get(), ANIMFILTER_DATA_VISIBLE, ANIMFILTER_LIST_CHANNELS, ANIMFILTER_LIST_VISIBLE, bAnimChannelType::channel_role, bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimChannelType::has_setting, bAnimListElem::next, and NULL.
Referenced by actkeys_viewall().
|
static |
Definition at line 1095 of file action_edit.c.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), C, clean_action_keys(), bAnimContext::datatype, ELEM, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, 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 547 of file action_edit.c.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), C, copy_action_keys(), bAnimContext::datatype, ED_gpencil_anim_copybuf_copy(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and RPT_ERROR.
Referenced by ACTION_OT_copy().
|
static |
Definition at line 1032 of file action_edit.c.
References ANIM_animdata_get_context(), C, delete_action_keys(), NA_REMOVED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ACTION_OT_delete().
|
static |
Definition at line 945 of file action_edit.c.
References ANIM_animdata_get_context(), C, duplicate_action_keys(), NA_ADDED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ACTION_OT_duplicate().
|
static |
Definition at line 1402 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_animdata_keyframe_callback(), ANIM_editkeyframes_easing(), ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, C, NC_ANIMATION, ND_KEYFRAME_PROP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by ACTION_OT_easing_type().
|
static |
Definition at line 1299 of file action_edit.c.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), C, bAnimContext::datatype, ELEM, NC_ANIMATION, ND_KEYFRAME_PROP, NULL, 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 1638 of file action_edit.c.
References ALE_FCURVE, ALE_GPFRAME, 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, C, RenderData::cfra, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, bAnimListElem::datatype, KeyframeEditData::f1, filter(), ListBase::first, bGPDframe::flag, bGPDframe::framenum, bGPDlayer::frames, GP_FRAME_SELECT, KeyframeEditData::i1, bAnimListElem::key_data, NC_SCENE, ND_FRAME, bAnimListElem::next, bGPDframe::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, round_fl_to_int(), scene, bAnimContext::scene, RenderData::subframe, and WM_event_add_notifier().
Referenced by ACTION_OT_frame_jump().
Definition at line 1627 of file action_edit.c.
References C, ED_operator_action_active(), and G.
Referenced by ACTION_OT_frame_jump().
|
static |
Definition at line 1488 of file action_edit.c.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), C, bAnimContext::datatype, ELEM, NC_ANIMATION, ND_KEYFRAME_PROP, NULL, 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 855 of file action_edit.c.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), C, bAnimContext::datatype, insert_action_keys(), NA_ADDED, NA_EDITED, NC_ANIMATION, NC_GPENCIL, ND_DATA, ND_KEYFRAME, NULL, 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 1347 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_animdata_keyframe_callback(), ANIM_editkeyframes_ipo(), ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMFILTER_CURVE_VISIBLE, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, BKE_report(), C, bAnimContext::datatype, ELEM, NC_ANIMATION, ND_KEYFRAME_PROP, NULL, 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 1576 of file action_edit.c.
References ANIM_animdata_get_context(), ANIMCONT_MASK, BKE_report(), C, bAnimContext::datatype, NC_ANIMATION, ND_KEYFRAME_PROP, NULL, 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 1933 of file action_edit.c.
References ANIM_animdata_get_context(), C, mirror_action_keys(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by ACTION_OT_mirror().
|
static |
Definition at line 664 of file action_edit.c.
References BLI_strdup(), NULL, ptr, RNA_boolean_get(), and TIP_.
Referenced by ACTION_OT_paste().
|
static |
Definition at line 598 of file action_edit.c.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), C, bAnimContext::datatype, ED_gpencil_anim_copybuf_paste(), KEYFRAME_PASTE_NOTHING_TO_PASTE, KEYFRAME_PASTE_NOWHERE_TO_PASTE, KEYFRAME_PASTE_OK, NA_EDITED, NC_ANIMATION, NC_GPENCIL, ND_DATA, ND_KEYFRAME, NULL, 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 247 of file action_edit.c.
References ANIM_animdata_get_context(), C, ceilf, RenderData::flag, floorf, get_keyframe_extents(), max, min, NC_SCENE, ND_FRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RenderData::pefra, RenderData::psfra, Scene::r, scene, bAnimContext::scene, SCER_PRV_RANGE, and WM_event_add_notifier().
Referenced by ACTION_OT_previewrange_set().
|
static |
Definition at line 1172 of file action_edit.c.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, ANIMCONT_MASK, BKE_report(), C, bAnimContext::datatype, ELEM, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::reports, RPT_ERROR, sample_action_keys(), and WM_event_add_notifier().
Referenced by ACTION_OT_sample().
|
static |
Definition at line 1809 of file action_edit.c.
References ANIM_animdata_get_context(), C, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, 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 464 of file action_edit.c.
References ANIM_center_frame(), C, OPERATOR_FINISHED, and WM_operator_smooth_viewtx_get().
Referenced by ACTION_OT_view_frame().
Definition at line 348 of file action_edit.c.
References actkeys_channels_get_selected_extents(), ANIM_animdata_get_context(), BLI_rctf_size_x(), BLI_rcti_size_y(), C, CTX_wm_area(), CTX_wm_screen(), View2D::cur, ED_area_tag_redraw(), fabsf, float(), get_keyframe_extents(), View2D::mask, max, min, NULL, 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 418 of file action_edit.c.
References actkeys_viewall(), and C.
Referenced by ACTION_OT_view_all().
|
static |
Definition at line 424 of file action_edit.c.
References actkeys_viewall(), and C.
Referenced by ACTION_OT_view_selected().
|
static |
Definition at line 1071 of file action_edit.c.
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(), ListBase::first, bAnimListElem::next, NULL, and bAnimListElem::update.
Referenced by actkeys_clean_exec().
|
static |
Definition at line 493 of file action_edit.c.
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, filter(), and NULL.
Referenced by actkeys_copy_exec().
|
static |
Definition at line 982 of file action_edit.c.
References bAnimListElem::adt, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_fcurve_delete_from_animdata(), ANIM_UPDATE_DEFAULT, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMTYPE_GPLAYER, ANIMTYPE_MASKLAYER, BKE_fcurve_delete_keys_selected(), BKE_fcurve_is_empty(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_gpencil_layer_frames_delete(), ED_masklayer_frames_delete(), filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, NULL, bAnimListElem::type, and bAnimListElem::update.
Referenced by actkeys_delete_exec().
|
static |
Definition at line 906 of file action_edit.c.
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_MASKLAYER, ANIMTYPE_NLACURVE, BLI_assert, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, duplicate_fcurve_keys(), ED_gpencil_layer_frame_select_check(), ED_gpencil_layer_frames_duplicate(), ED_masklayer_frames_duplicate(), ELEM, filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, NULL, bAnimListElem::type, and bAnimListElem::update.
Referenced by actkeys_duplicate_exec().
|
static |
Definition at line 151 of file action_edit.c.
References ALE_GPFRAME, 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, bAnimListElem::data, bAnimContext::datatype, bAnimListElem::datatype, RenderData::efra, fabsf, filter(), ListBase::first, bGPDframe::flag, float(), MaskLayerShape::frame, bGPDframe::framenum, bGPDlayer::frames, GP_FRAME_SELECT, if(), bAnimListElem::key_data, max, max_ff(), min, min_ff(), bAnimListElem::next, bGPDframe::next, MaskLayerShape::next, NLATIME_CONVERT_MAP, NULL, Scene::r, bAnimContext::scene, RenderData::sfra, and MaskLayer::splines_shapes.
Referenced by actkeys_previewrange_exec(), and actkeys_viewall().
|
static |
Definition at line 792 of file action_edit.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_get_keyframing_flags(), ANIMFILTER_ACTGROUPED, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FOREDIT, ANIMFILTER_LIST_VISIBLE, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMTYPE_FCURVE, ANIMTYPE_GPLAYER, BKE_animsys_eval_context_construct(), BKE_animsys_free_nla_keyframing_context_cache(), BLI_assert_msg, RenderData::cfra, bAnimContext::data, bAnimContext::datatype, bAnimContext::depsgraph, filter(), ListBase::first, GP_GETFRAME_ADD_COPY, GP_GETFRAME_ADD_NEW, GP_TOOL_FLAG_RETAIN_LAST, ToolSettings::gpencil_flags, insert_fcurve_key(), insert_gpencil_key(), bAnimListElem::next, NULL, Scene::r, scene, bAnimContext::scene, Scene::toolsettings, and bAnimListElem::type.
Referenced by actkeys_insertkey_exec().
|
static |
Definition at line 741 of file action_edit.c.
References ANIM_nla_mapping_get(), ANIM_UPDATE_DEFAULT, FCurve::array_index, BKE_nla_tweakedit_remap(), bAnimContext::bmain, AnimationEvalContext::eval_time, evaluate_fcurve(), FCurve::grp, bAnimListElem::id, if(), insert_keyframe(), insert_vert_fcurve(), bAnimListElem::key_data, bActionGroup::name, NLATIME_CONVERT_UNMAP, NULL, bAnimListElem::owner, bAnimContext::reports, FCurve::rna_path, scene, bAnimContext::scene, Scene::toolsettings, and bAnimListElem::update.
Referenced by insert_action_keys().
|
static |
Definition at line 725 of file action_edit.c.
References BKE_gpencil_layer_frame_get(), BKE_gpencil_tag(), RenderData::cfra, bAnimListElem::data, bAnimListElem::id, Scene::r, scene, and bAnimContext::scene.
Referenced by insert_action_keys().
|
static |
Definition at line 1873 of file action_edit.c.
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_MASKLAYER, BKE_fcurve_handles_recalc(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_gpencil_layer_mirror_frames(), ED_markers_get_first_selected(), KeyframeEditData::f1, filter(), ListBase::first, float(), TimeMarker::frame, bAnimListElem::key_data, bAnimContext::markers, bAnimListElem::next, NULL, bAnimContext::scene, KeyframeEditData::scene, bAnimListElem::type, and bAnimListElem::update.
Referenced by actkeys_mirror_exec().
|
static |
Definition at line 515 of file action_edit.c.
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(), NULL, and paste_animedit_keys().
Referenced by actkeys_paste_exec().
|
static |
Definition at line 1148 of file action_edit.c.
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, bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, NULL, sample_fcurve(), and bAnimListElem::update.
Referenced by actkeys_sample_exec().
|
static |
Definition at line 1246 of file action_edit.c.
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, bAnimListElem::data, bAnimContext::datatype, FCurve::extend, filter(), ListBase::first, FMODIFIER_TYPE_CYCLES, if(), list_has_suitable_fmodifier(), MAKE_CYCLIC_EXPO, FCurve::modifiers, bAnimListElem::next, FModifier::next, NULL, remove_fmodifier(), FModifier::type, and bAnimListElem::update.
Referenced by actkeys_expo_exec().
|
static |
Definition at line 1452 of file action_edit.c.
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(), ListBase::first, if(), bAnimListElem::key_data, bAnimListElem::next, NULL, and bAnimListElem::update.
Referenced by actkeys_handletype_exec().
|
static |
Definition at line 1537 of file action_edit.c.
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, BLI_assert_msg, bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_gpencil_layer_frames_keytype_set(), filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, NULL, bAnimListElem::type, and bAnimListElem::update.
Referenced by actkeys_keytype_exec().
|
static |
Definition at line 1753 of file action_edit.c.
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_MASKLAYER, BKE_fcurve_handles_recalc(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, ED_gpencil_layer_snap_frames(), ED_masklayer_snap_frames(), ELEM, filter(), ListBase::first, bAnimListElem::key_data, ListBase::last, KeyframeEditData::list, bAnimContext::markers, bAnimListElem::next, NULL, bAnimContext::scene, KeyframeEditData::scene, bAnimListElem::type, and bAnimListElem::update.
Referenced by actkeys_snap_exec().
|
static |
Definition at line 1220 of file action_edit.c.
Referenced by ACTION_OT_extrapolation_type().
|
static |
Definition at line 717 of file action_edit.c.
Referenced by ACTION_OT_keyframe_insert().
|
static |
Definition at line 1853 of file action_edit.c.
Referenced by ACTION_OT_mirror().
|
static |
Definition at line 1727 of file action_edit.c.
Referenced by ACTION_OT_snap().