|
Blender
V2.59
|
#include <math.h>#include <stdlib.h>#include <string.h>#include <float.h>#include "BLI_blenlib.h"#include "BLI_math.h"#include "BLI_utildefines.h"#include "DNA_anim_types.h"#include "DNA_gpencil_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_fcurve.h"#include "BKE_nla.h"#include "BKE_context.h"#include "BKE_report.h"#include "UI_view2d.h"#include "ED_anim_api.h"#include "ED_gpencil.h"#include "ED_keyframing.h"#include "ED_keyframes_edit.h"#include "ED_screen.h"#include "ED_transform.h"#include "ED_markers.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.
Definition in file action_edit.c.
| static int act_markers_make_local_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 175 of file action_edit.c.
References SpaceAction::action, BLI_addtail(), BLI_remlink(), CTX_wm_space_action(), ED_context_get_markers(), ELEM, ListBase::first, SpaceAction::flag, if(), 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().
| static int act_markers_make_local_poll | ( | bContext * | C | ) | [static] |
Definition at line 153 of file action_edit.c.
References SpaceAction::action, 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().
| static int act_new_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 82 of file action_edit.c.
References add_empty_action(), copy_action(), PointerRNA::data, GS, PointerRNA::id, bAction::id, ID_AC, if(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_FINISHED, RNA_id_pointer_create(), RNA_property_pointer_get(), RNA_property_pointer_set(), RNA_property_update(), uiIDContextProperty(), ID::us, and WM_event_add_notifier().
Referenced by ACTION_OT_new().
| void ACTION_OT_clean | ( | wmOperatorType * | ot | ) |
Definition at line 839 of file action_edit.c.
References actkeys_clean_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, RNA_def_float(), and wmOperatorType::srna.
Referenced by action_operatortypes().
| void ACTION_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 473 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, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_delete | ( | wmOperatorType * | ot | ) |
Definition at line 775 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, wmOperatorType::poll, and WM_operator_confirm().
Referenced by action_operatortypes().
| void ACTION_OT_duplicate | ( | wmOperatorType * | ot | ) |
Definition at line 698 of file action_edit.c.
References actkeys_duplicate_exec(), actkeys_duplicate_invoke(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), wmOperatorType::srna, TFM_TRANSLATION, and transform_mode_types.
Referenced by action_operatortypes().
| void ACTION_OT_extrapolation_type | ( | wmOperatorType * | ot | ) |
Definition at line 979 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, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_frame_jump | ( | wmOperatorType * | ot | ) |
Definition at line 1286 of file action_edit.c.
References actkeys_framejump_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_handle_type | ( | wmOperatorType * | ot | ) |
Definition at line 1147 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, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_interpolation_type | ( | wmOperatorType * | ot | ) |
Definition at line 1050 of file action_edit.c.
References actkeys_ipo_exec(), beztriple_interpolation_mode_items, wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_keyframe_insert | ( | wmOperatorType * | ot | ) |
Definition at line 623 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, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_keyframe_type | ( | wmOperatorType * | ot | ) |
Definition at line 1218 of file action_edit.c.
References actkeys_keytype_exec(), beztriple_keyframe_type_items, wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_markers_make_local | ( | wmOperatorType * | ot | ) |
Definition at line 209 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, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_mirror | ( | wmOperatorType * | ot | ) |
Definition at line 1492 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, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 126 of file action_edit.c.
References act_new_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by action_operatortypes().
| void ACTION_OT_paste | ( | wmOperatorType * | ot | ) |
Definition at line 524 of file action_edit.c.
References actkeys_paste_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, keyframe_paste_merge_items, KEYFRAME_PASTE_MERGE_MIX, KEYFRAME_PASTE_OFFSET_CFRA_START, keyframe_paste_offset_items, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by action_operatortypes().
| void ACTION_OT_previewrange_set | ( | wmOperatorType * | ot | ) |
Definition at line 310 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, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_sample | ( | wmOperatorType * | ot | ) |
Definition at line 903 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, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_snap | ( | wmOperatorType * | ot | ) |
Definition at line 1382 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, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by action_operatortypes().
| void ACTION_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 372 of file action_edit.c.
References actkeys_viewall_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by action_operatortypes().
| void ACTION_OT_view_selected | ( | wmOperatorType * | ot | ) |
Definition at line 387 of file action_edit.c.
References actkeys_viewsel_exec(), wmOperatorType::description, ED_operator_action_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by action_operatortypes().
| static int actkeys_clean_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 813 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), ANIMCONT_GPENCIL, clean_action_keys(), bAnimContext::datatype, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_float_get(), thresh, and WM_event_add_notifier().
Referenced by ACTION_OT_clean().
| static int actkeys_copy_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 451 of file action_edit.c.
References ANIM_animdata_get_context(), ANIMCONT_GPENCIL, BKE_report(), copy_action_keys(), bAnimContext::datatype, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and RPT_ERROR.
Referenced by ACTION_OT_copy().
| static int actkeys_delete_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 755 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), delete_action_keys(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ACTION_OT_delete().
| static int actkeys_duplicate_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 671 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), duplicate_action_keys(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ACTION_OT_duplicate(), and actkeys_duplicate_invoke().
| static int actkeys_duplicate_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 691 of file action_edit.c.
References actkeys_duplicate_exec(), and OPERATOR_FINISHED.
Referenced by ACTION_OT_duplicate().
| static int actkeys_expo_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 953 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), ANIMCONT_GPENCIL, bAnimContext::datatype, NC_ANIMATION, ND_KEYFRAME_PROP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_enum_get(), setexpo_action_keys(), and WM_event_add_notifier().
Referenced by ACTION_OT_extrapolation_type().
| static int actkeys_framejump_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1243 of file action_edit.c.
References ANIM_animdata_filter(), ANIM_animdata_get_context(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIMFILTER_CURVESONLY, ANIMFILTER_NODUPLIS, ANIMFILTER_VISIBLE, bezt_calc_average(), BLI_freelistN(), CFRA, bAnimContext::data, bAnimContext::datatype, KeyframeEditData::f1, filter(), ListBase::first, KeyframeEditData::i1, bAnimListElem::key_data, NC_SCENE, ND_FRAME, bAnimListElem::next, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bAnimContext::scene, SUBFRA, and WM_event_add_notifier().
Referenced by ACTION_OT_frame_jump().
| static int actkeys_handletype_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1121 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), ANIMCONT_GPENCIL, bAnimContext::datatype, NC_ANIMATION, ND_KEYFRAME_PROP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_enum_get(), sethandles_action_keys(), and WM_event_add_notifier().
Referenced by ACTION_OT_handle_type().
| static int actkeys_insertkey_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 597 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), ANIMCONT_GPENCIL, bAnimContext::datatype, insert_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_keyframe_insert().
| static int actkeys_ipo_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1024 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), ANIMCONT_GPENCIL, bAnimContext::datatype, NC_ANIMATION, ND_KEYFRAME_PROP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_enum_get(), setipo_action_keys(), and WM_event_add_notifier().
Referenced by ACTION_OT_interpolation_type().
| static int actkeys_keytype_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1192 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), ANIMCONT_GPENCIL, bAnimContext::datatype, NC_ANIMATION, ND_KEYFRAME_PROP, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_enum_get(), setkeytype_action_keys(), and WM_event_add_notifier().
Referenced by ACTION_OT_keyframe_type().
| static int actkeys_mirror_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1468 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), 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 int actkeys_paste_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 489 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), ANIMCONT_GPENCIL, BKE_report(), bAnimContext::datatype, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, paste_action_keys(), wmOperator::ptr, bAnimContext::reports, wmOperator::reports, RNA_enum_get(), RPT_ERROR, and WM_event_add_notifier().
Referenced by ACTION_OT_paste().
| static int actkeys_previewrange_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 283 of file action_edit.c.
References ANIM_animdata_get_context(), FALSE, RenderData::flag, get_keyframe_extents(), max, min, NC_SCENE, ND_FRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RenderData::pefra, RenderData::psfra, Scene::r, bAnimContext::scene, SCER_PRV_RANGE, and WM_event_add_notifier().
Referenced by ACTION_OT_previewrange_set().
| static int actkeys_sample_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 881 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), ANIMCONT_GPENCIL, bAnimContext::datatype, NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, sample_action_keys(), and WM_event_add_notifier().
Referenced by ACTION_OT_sample().
| static int actkeys_snap_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1358 of file action_edit.c.
References ANIM_animdata_get_context(), ANIM_editkeyframes_refresh(), 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 int actkeys_viewall | ( | bContext * | C, |
| const short | onlySel | ||
| ) | [static] |
Definition at line 327 of file action_edit.c.
References ANIM_animdata_get_context(), bAnimContext::ar, CTX_wm_area(), CTX_wm_screen(), View2D::cur, ED_area_tag_redraw(), get_keyframe_extents(), View2D::mask, OPERATOR_CANCELLED, OPERATOR_FINISHED, UI_view2d_sync(), ARegion::v2d, V2D_LOCK_COPY, rctf::xmax, rctf::xmin, rcti::ymax, rctf::ymax, rcti::ymin, and rctf::ymin.
Referenced by actkeys_viewall_exec(), and actkeys_viewsel_exec().
| static int actkeys_viewall_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 360 of file action_edit.c.
References actkeys_viewall(), and FALSE.
Referenced by ACTION_OT_view_all().
| static int actkeys_viewsel_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 366 of file action_edit.c.
References actkeys_viewall(), and TRUE.
Referenced by ACTION_OT_view_selected().
| static void clean_action_keys | ( | bAnimContext * | ac, |
| float | thresh | ||
| ) | [static] |
Definition at line 793 of file action_edit.c.
References ANIM_animdata_filter(), ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMFILTER_VISIBLE, BLI_freelistN(), clean_fcurve(), bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, and NULL.
Referenced by actkeys_clean_exec().
| static short copy_action_keys | ( | bAnimContext * | ac | ) | [static] |
Definition at line 408 of file action_edit.c.
References ANIM_animdata_filter(), ANIMFILTER_CURVESONLY, ANIMFILTER_NODUPLIS, ANIMFILTER_VISIBLE, BLI_freelistN(), copy_animedit_keys(), bAnimContext::data, bAnimContext::datatype, filter(), free_anim_copybuf(), and NULL.
Referenced by actkeys_copy_exec().
| static void delete_action_keys | ( | bAnimContext * | ac | ) | [static] |
Definition at line 719 of file action_edit.c.
References bAnimListElem::adt, ANIM_animdata_filter(), ANIM_fcurve_delete_from_animdata(), ANIMCONT_GPENCIL, ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_VISIBLE, ANIMTYPE_GPLAYER, BLI_freelistN(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, delete_fcurve_keys(), delete_gplayer_frames(), filter(), ListBase::first, FMI_TYPE_GENERATE_CURVE, bAnimListElem::key_data, list_has_suitable_fmodifier(), FCurve::modifiers, bAnimListElem::next, NULL, FCurve::totvert, and bAnimListElem::type.
Referenced by actkeys_delete_exec().
| static void duplicate_action_keys | ( | bAnimContext * | ac | ) | [static] |
Definition at line 644 of file action_edit.c.
References ANIM_animdata_filter(), ANIMCONT_GPENCIL, ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_VISIBLE, ANIMTYPE_FCURVE, BLI_freelistN(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, duplicate_fcurve_keys(), duplicate_gplayer_frames(), filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, NULL, and bAnimListElem::type.
Referenced by actkeys_duplicate_exec().
| static void get_keyframe_extents | ( | bAnimContext * | ac, |
| float * | min, | ||
| float * | max, | ||
| const short | onlySel | ||
| ) | [static] |
Definition at line 230 of file action_edit.c.
References ANIM_animdata_filter(), ANIM_nla_mapping_get(), ANIMFILTER_CURVESONLY, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMFILTER_VISIBLE, BKE_nla_tweakedit_remap(), BLI_freelistN(), calc_fcurve_range(), bAnimContext::data, bAnimContext::datatype, RenderData::efra, filter(), ListBase::first, bAnimListElem::key_data, MAX2, MIN2, bAnimListElem::next, NLATIME_CONVERT_MAP, NULL, Scene::r, bAnimContext::scene, and RenderData::sfra.
Referenced by actkeys_previewrange_exec(), and actkeys_viewall().
| static void insert_action_keys | ( | bAnimContext * | ac, |
| short | mode | ||
| ) | [static] |
Definition at line 553 of file action_edit.c.
References ANIM_animdata_filter(), ANIM_get_keyframing_flags(), ANIM_nla_mapping_get(), ANIMFILTER_ACTGROUPED, ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMFILTER_VISIBLE, FCurve::array_index, BKE_nla_tweakedit_remap(), BLI_freelistN(), CFRA, FCurve::curval, bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, FCurve::grp, bAnimListElem::id, if(), insert_keyframe(), insert_vert_fcurve(), bAnimListElem::key_data, bActionGroup::name, bAnimListElem::next, NLATIME_CONVERT_UNMAP, NULL, bAnimContext::reports, FCurve::rna_path, and bAnimContext::scene.
Referenced by actkeys_insertkey_exec().
| static void mirror_action_keys | ( | bAnimContext * | ac, |
| short | mode | ||
| ) | [static] |
Definition at line 1412 of file action_edit.c.
References ACTKEYS_MIRROR_MARKER, ANIM_animdata_filter(), ANIM_editkeyframes_mirror(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIMCONT_GPENCIL, ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_VISIBLE, BLI_freelistN(), calchandles_fcurve(), bAnimContext::data, bAnimContext::datatype, ED_markers_get_first_selected(), KeyframeEditData::f1, filter(), ListBase::first, TimeMarker::frame, bAnimListElem::key_data, bAnimContext::markers, bAnimListElem::next, NULL, bAnimContext::scene, and KeyframeEditData::scene.
Referenced by actkeys_mirror_exec().
| static short paste_action_keys | ( | bAnimContext * | ac, |
| const eKeyPasteOffset | offset_mode, | ||
| const eKeyMergeMode | merge_mode | ||
| ) | [static] |
Definition at line 430 of file action_edit.c.
References ANIM_animdata_filter(), ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMFILTER_VISIBLE, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, filter(), NULL, and paste_animedit_keys().
Referenced by actkeys_paste_exec().
| static void sample_action_keys | ( | bAnimContext * | ac | ) | [static] |
Definition at line 861 of file action_edit.c.
References ANIM_animdata_filter(), ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_VISIBLE, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, NULL, and sample_fcurve().
Referenced by actkeys_sample_exec().
| static void setexpo_action_keys | ( | bAnimContext * | ac, |
| short | mode | ||
| ) | [static] |
Definition at line 931 of file action_edit.c.
References ANIM_animdata_filter(), ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_SEL, ANIMFILTER_VISIBLE, BLI_freelistN(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, FCurve::extend, filter(), ListBase::first, bAnimListElem::next, and NULL.
Referenced by actkeys_expo_exec().
| static void sethandles_action_keys | ( | bAnimContext * | ac, |
| short | mode | ||
| ) | [static] |
Definition at line 1083 of file action_edit.c.
References ANIM_animdata_filter(), ANIM_editkeyframes_handles(), ANIM_editkeyframes_ok(), ANIM_fcurve_keyframes_loop(), ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_VISIBLE, BEZT_OK_SELECTED, BLI_freelistN(), calchandles_fcurve(), bAnimContext::data, bAnimContext::datatype, FCURVE_AUTO_HANDLES, filter(), ListBase::first, FCurve::flag, HD_AUTO, HD_AUTO_ANIM, if(), bAnimListElem::key_data, bAnimListElem::next, and NULL.
Referenced by actkeys_handletype_exec().
| static void setipo_action_keys | ( | bAnimContext * | ac, |
| short | mode | ||
| ) | [static] |
Definition at line 1001 of file action_edit.c.
References ANIM_animdata_filter(), ANIM_editkeyframes_ipo(), ANIM_fcurve_keyframes_loop(), ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_VISIBLE, BLI_freelistN(), calchandles_fcurve(), bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, and NULL.
Referenced by actkeys_ipo_exec().
| static void setkeytype_action_keys | ( | bAnimContext * | ac, |
| short | mode | ||
| ) | [static] |
Definition at line 1169 of file action_edit.c.
References ANIM_animdata_filter(), ANIM_editkeyframes_keytype(), ANIM_fcurve_keyframes_loop(), ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_VISIBLE, BLI_freelistN(), bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, and NULL.
Referenced by actkeys_keytype_exec().
| static void snap_action_keys | ( | bAnimContext * | ac, |
| short | mode | ||
| ) | [static] |
Definition at line 1313 of file action_edit.c.
References ACTKEYS_SNAP_NEAREST_MARKER, ANIM_animdata_filter(), ANIM_editkeyframes_snap(), ANIM_fcurve_keyframes_loop(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIMCONT_GPENCIL, ANIMFILTER_CURVESONLY, ANIMFILTER_FOREDIT, ANIMFILTER_NODUPLIS, ANIMFILTER_VISIBLE, BLI_freelistN(), calchandles_fcurve(), bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::key_data, ListBase::last, KeyframeEditData::list, bAnimContext::markers, bAnimListElem::next, NULL, bAnimContext::scene, and KeyframeEditData::scene.
Referenced by actkeys_snap_exec().
EnumPropertyItem actkeys_handle_type_items[] [static] |
{
{HD_FREE, "FREE", 0, "Free", ""},
{HD_VECT, "VECTOR", 0, "Vector", ""},
{HD_ALIGN, "ALIGNED", 0, "Aligned", ""},
{0, "", 0, "", ""},
{HD_AUTO, "AUTO", 0, "Auto", "Handles that are automatically adjusted upon moving the keyframe"},
{HD_AUTO_ANIM, "ANIM_CLAMPED", 0, "Auto Clamped", "Auto handles clamped to not overshoot"},
{0, NULL, 0, NULL, NULL}}
Definition at line 1071 of file action_edit.c.
EnumPropertyItem prop_actkeys_expo_types[] [static] |
{
{FCURVE_EXTRAPOLATE_CONSTANT, "CONSTANT", 0, "Constant Extrapolation", ""},
{FCURVE_EXTRAPOLATE_LINEAR, "LINEAR", 0, "Linear Extrapolation", ""},
{0, NULL, 0, NULL, NULL}
}
Definition at line 924 of file action_edit.c.
EnumPropertyItem prop_actkeys_insertkey_types[] [static] |
{
{1, "ALL", 0, "All Channels", ""},
{2, "SEL", 0, "Only Selected Channels", ""},
{3, "GROUP", 0, "In Active Group", ""},
{0, NULL, 0, NULL, NULL}
}
Definition at line 545 of file action_edit.c.
EnumPropertyItem prop_actkeys_mirror_types[] [static] |
{
{ACTKEYS_MIRROR_CFRA, "CFRA", 0, "By Times over Current frame", ""},
{ACTKEYS_MIRROR_XAXIS, "XAXIS", 0, "By Values over Value=0", ""},
{ACTKEYS_MIRROR_MARKER, "MARKER", 0, "By Times over First Selected Marker", ""},
{0, NULL, 0, NULL, NULL}
}
Definition at line 1404 of file action_edit.c.
EnumPropertyItem prop_actkeys_snap_types[] [static] |
{
{ACTKEYS_SNAP_CFRA, "CFRA", 0, "Current frame", ""},
{ACTKEYS_SNAP_NEAREST_FRAME, "NEAREST_FRAME", 0, "Nearest Frame", ""},
{ACTKEYS_SNAP_NEAREST_SECOND, "NEAREST_SECOND", 0, "Nearest Second", ""},
{ACTKEYS_SNAP_NEAREST_MARKER, "NEAREST_MARKER", 0, "Nearest Marker", ""},
{0, NULL, 0, NULL, NULL}
}
Definition at line 1304 of file action_edit.c.