|
Blender
V2.93
|
#include "ED_anim_api.h"Go to the source code of this file.
Classes | |
| struct | KeyframeEdit_LassoData |
| struct | KeyframeEdit_CircleData |
| struct | KeyframeEditData |
| struct | KeyframeEditCD_Remap |
Typedefs | |
| typedef enum eEditKeyframes_Validate | eEditKeyframes_Validate |
| typedef enum eEditKeyframes_Select | eEditKeyframes_Select |
| typedef enum eEditKeyframes_SelMap | eEditKeyframes_SelMap |
| typedef enum eEditKeyframes_Snap | eEditKeyframes_Snap |
| typedef enum eEditKeyframes_Mirror | eEditKeyframes_Mirror |
| typedef struct KeyframeEdit_LassoData | KeyframeEdit_LassoData |
| typedef struct KeyframeEdit_CircleData | KeyframeEdit_CircleData |
| typedef enum eKeyframeVertOk | eKeyframeVertOk |
| typedef enum eKeyframeIterFlags | eKeyframeIterFlags |
| typedef struct KeyframeEditData | KeyframeEditData |
| typedef void(* | FcuEditFunc) (struct FCurve *fcu) |
| typedef short(* | KeyframeEditFunc) (KeyframeEditData *ked, struct BezTriple *bezt) |
| typedef struct KeyframeEditCD_Remap | KeyframeEditCD_Remap |
| typedef enum eKeyPasteOffset | eKeyPasteOffset |
| typedef enum eKeyMergeMode | eKeyMergeMode |
| typedef enum eEditKeyframes_Mirror eEditKeyframes_Mirror |
| typedef enum eEditKeyframes_Select eEditKeyframes_Select |
| typedef enum eEditKeyframes_SelMap eEditKeyframes_SelMap |
| typedef enum eEditKeyframes_Snap eEditKeyframes_Snap |
| typedef enum eEditKeyframes_Validate eEditKeyframes_Validate |
| typedef enum eKeyframeIterFlags eKeyframeIterFlags |
| typedef enum eKeyframeVertOk eKeyframeVertOk |
| typedef enum eKeyMergeMode eKeyMergeMode |
| typedef enum eKeyPasteOffset eKeyPasteOffset |
| typedef void(* FcuEditFunc) (struct FCurve *fcu) |
Definition at line 190 of file ED_keyframes_edit.h.
| typedef struct KeyframeEdit_CircleData KeyframeEdit_CircleData |
| typedef struct KeyframeEdit_LassoData KeyframeEdit_LassoData |
| typedef struct KeyframeEditCD_Remap KeyframeEditCD_Remap |
| typedef struct KeyframeEditData KeyframeEditData |
| typedef short(* KeyframeEditFunc) (KeyframeEditData *ked, struct BezTriple *bezt) |
Definition at line 192 of file ED_keyframes_edit.h.
| Enumerator | |
|---|---|
| MIRROR_KEYS_CURFRAME | |
| MIRROR_KEYS_YAXIS | |
| MIRROR_KEYS_XAXIS | |
| MIRROR_KEYS_MARKER | |
| MIRROR_KEYS_VALUE | |
| MIRROR_KEYS_TIME | |
Definition at line 95 of file ED_keyframes_edit.h.
| Enumerator | |
|---|---|
| SELECT_REPLACE | |
| SELECT_ADD | |
| SELECT_SUBTRACT | |
| SELECT_INVERT | |
Definition at line 66 of file ED_keyframes_edit.h.
| Enumerator | |
|---|---|
| SELMAP_MORE | |
| SELMAP_LESS | |
Definition at line 78 of file ED_keyframes_edit.h.
| enum eEditKeyframes_Snap |
| Enumerator | |
|---|---|
| SNAP_KEYS_CURFRAME | |
| SNAP_KEYS_NEARFRAME | |
| SNAP_KEYS_NEARSEC | |
| SNAP_KEYS_NEARMARKER | |
| SNAP_KEYS_HORIZONTAL | |
| SNAP_KEYS_VALUE | |
| SNAP_KEYS_TIME | |
Definition at line 84 of file ED_keyframes_edit.h.
| Enumerator | |
|---|---|
| BEZT_OK_FRAME | |
| BEZT_OK_FRAMERANGE | |
| BEZT_OK_SELECTED | |
| BEZT_OK_VALUE | |
| BEZT_OK_VALUERANGE | |
| BEZT_OK_REGION | |
| BEZT_OK_REGION_LASSO | |
| BEZT_OK_REGION_CIRCLE | |
| BEZT_OK_CHANNEL_LASSO | |
| BEZT_OK_CHANNEL_CIRCLE | |
Definition at line 45 of file ED_keyframes_edit.h.
| enum eKeyframeIterFlags |
| Enumerator | |
|---|---|
| KEYFRAME_ITER_INCL_HANDLES | |
| KED_F1_NLA_UNMAP | |
| KED_F2_NLA_UNMAP | |
| KEYFRAME_ITER_HANDLES_DEFAULT_INVISIBLE | |
Definition at line 138 of file ED_keyframes_edit.h.
| enum eKeyframeVertOk |
| Enumerator | |
|---|---|
| KEYFRAME_OK_KEY | |
| KEYFRAME_OK_H1 | |
| KEYFRAME_OK_H2 | |
| KEYFRAME_OK_ALL | |
Definition at line 126 of file ED_keyframes_edit.h.
| enum eKeyMergeMode |
| Enumerator | |
|---|---|
| KEYFRAME_PASTE_MERGE_MIX | |
| KEYFRAME_PASTE_MERGE_OVER | |
| KEYFRAME_PASTE_MERGE_OVER_RANGE | |
| KEYFRAME_PASTE_MERGE_OVER_RANGE_ALL | |
Definition at line 214 of file ED_keyframes_edit.h.
| enum eKeyPasteOffset |
| Enumerator | |
|---|---|
| KEYFRAME_PASTE_OFFSET_CFRA_START | |
| KEYFRAME_PASTE_OFFSET_CFRA_END | |
| KEYFRAME_PASTE_OFFSET_CFRA_RELATIVE | |
| KEYFRAME_PASTE_OFFSET_NONE | |
Definition at line 203 of file ED_keyframes_edit.h.
| short ANIM_animchannel_keyframes_loop | ( | KeyframeEditData * | ked, |
| struct bDopeSheet * | ads, | ||
| struct bAnimListElem * | ale, | ||
| KeyframeEditFunc | key_ok, | ||
| KeyframeEditFunc | key_cb, | ||
| FcuEditFunc | fcu_cb | ||
| ) |
Definition at line 382 of file keyframes_edit.c.
References act_keyframes_loop(), agrp_keyframes_loop(), ALE_ACT, ALE_ALL, ALE_FCURVE, ALE_GROUP, ALE_OB, ALE_SCE, ANIM_fcurve_keyframes_loop(), bAnimListElem::data, bAnimListElem::datatype, bAnimListElem::key_data, NULL, ob_keyframes_loop(), scene_keyframes_loop(), and summary_keyframes_loop().
Referenced by actkeys_mselect_channel_only(), actkeys_mselect_single(), box_select_elem(), and region_select_elem().
| short ANIM_animchanneldata_keyframes_loop | ( | KeyframeEditData * | ked, |
| struct bDopeSheet * | ads, | ||
| void * | data, | ||
| int | keytype, | ||
| KeyframeEditFunc | key_ok, | ||
| KeyframeEditFunc | key_cb, | ||
| FcuEditFunc | fcu_cb | ||
| ) |
Definition at line 421 of file keyframes_edit.c.
References act_keyframes_loop(), agrp_keyframes_loop(), ALE_ACT, ALE_ALL, ALE_FCURVE, ALE_GROUP, ALE_OB, ALE_SCE, ANIM_fcurve_keyframes_loop(), data, NULL, ob_keyframes_loop(), scene_keyframes_loop(), and summary_keyframes_loop().
Referenced by nlaedit_apply_scale_exec(), and poselib_apply_pose().
| void ANIM_animdata_keyframe_callback | ( | struct bAnimContext * | ac, |
| eAnimFilter_Flags | filter, | ||
| KeyframeEditFunc | callback_fn | ||
| ) |
Definition at line 459 of file keyframes_edit.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_fcurve_keyframes_loop(), ANIM_UPDATE_DEFAULT, calchandles_fcurve(), bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::key_data, bAnimListElem::next, NULL, and bAnimListElem::update.
Referenced by actkeys_easing_exec(), and actkeys_ipo_exec().
| KeyframeEditFunc ANIM_editkeyframes_buildselmap | ( | short | mode | ) |
Definition at line 1642 of file keyframes_edit.c.
References selmap_build_bezier_less(), selmap_build_bezier_more(), SELMAP_LESS, and SELMAP_MORE.
Referenced by select_moreless_action_keys(), and select_moreless_graph_keys().
| KeyframeEditFunc ANIM_editkeyframes_easing | ( | short | mode | ) |
Definition at line 1451 of file keyframes_edit.c.
References BEZT_IPO_EASE_IN, BEZT_IPO_EASE_IN_OUT, BEZT_IPO_EASE_OUT, set_easingtype_easeauto(), set_easingtype_easein(), set_easingtype_easeinout(), and set_easingtype_easeout().
Referenced by actkeys_easing_exec(), and seteasing_graph_keys().
| KeyframeEditFunc ANIM_editkeyframes_handles | ( | short | mode | ) |
Definition at line 1188 of file keyframes_edit.c.
References bezier_isfree(), HD_ALIGN, HD_AUTO, HD_AUTO_ANIM, HD_FREE, HD_VECT, set_bezier_align(), set_bezier_auto(), set_bezier_auto_clamped(), set_bezier_free(), and set_bezier_vector().
Referenced by sethandles_action_keys(), and sethandles_graph_keys().
| KeyframeEditFunc ANIM_editkeyframes_ipo | ( | short | mode | ) |
Definition at line 1316 of file keyframes_edit.c.
References BEZT_IPO_BACK, BEZT_IPO_BOUNCE, BEZT_IPO_CIRC, BEZT_IPO_CONST, BEZT_IPO_CUBIC, BEZT_IPO_ELASTIC, BEZT_IPO_EXPO, BEZT_IPO_LIN, BEZT_IPO_QUAD, BEZT_IPO_QUART, BEZT_IPO_QUINT, BEZT_IPO_SINE, set_bezt_back(), set_bezt_bezier(), set_bezt_bounce(), set_bezt_circle(), set_bezt_constant(), set_bezt_cubic(), set_bezt_elastic(), set_bezt_expo(), set_bezt_linear(), set_bezt_quad(), set_bezt_quart(), set_bezt_quint(), and set_bezt_sine().
Referenced by actkeys_ipo_exec(), and setipo_graph_keys().
| KeyframeEditFunc ANIM_editkeyframes_keytype | ( | short | mode | ) |
Definition at line 1395 of file keyframes_edit.c.
References BEZT_KEYTYPE_BREAKDOWN, BEZT_KEYTYPE_EXTREME, BEZT_KEYTYPE_JITTER, BEZT_KEYTYPE_KEYFRAME, BEZT_KEYTYPE_MOVEHOLD, set_keytype_breakdown(), set_keytype_extreme(), set_keytype_jitter(), set_keytype_keyframe(), and set_keytype_moving_hold().
Referenced by setkeytype_action_keys().
| KeyframeEditFunc ANIM_editkeyframes_mirror | ( | short | mode | ) |
Definition at line 1029 of file keyframes_edit.c.
References mirror_bezier_cframe(), mirror_bezier_marker(), mirror_bezier_time(), mirror_bezier_value(), mirror_bezier_xaxis(), mirror_bezier_yaxis(), MIRROR_KEYS_CURFRAME, MIRROR_KEYS_MARKER, MIRROR_KEYS_TIME, MIRROR_KEYS_VALUE, MIRROR_KEYS_XAXIS, and MIRROR_KEYS_YAXIS.
Referenced by mirror_action_keys(), and mirror_graph_keys().
| KeyframeEditFunc ANIM_editkeyframes_ok | ( | short | mode | ) |
Definition at line 748 of file keyframes_edit.c.
References BEZT_OK_CHANNEL_CIRCLE, BEZT_OK_CHANNEL_LASSO, BEZT_OK_FRAME, BEZT_OK_FRAMERANGE, BEZT_OK_REGION, BEZT_OK_REGION_CIRCLE, BEZT_OK_REGION_LASSO, BEZT_OK_SELECTED, BEZT_OK_VALUE, BEZT_OK_VALUERANGE, NULL, ok_bezier_channel_circle(), ok_bezier_channel_lasso(), ok_bezier_frame(), ok_bezier_framerange(), ok_bezier_region(), ok_bezier_region_circle(), ok_bezier_region_lasso(), ok_bezier_selected(), ok_bezier_value(), and ok_bezier_valuerange().
Referenced by actkeys_mselect_column(), actkeys_mselect_single(), actkeys_select_leftright(), actkeys_select_linked_exec(), box_select_action(), box_select_graphkeys(), columnselect_action_keys(), columnselect_graph_keys(), copy_animedit_keys(), deselect_action_keys(), graphkeys_mselect_column(), graphkeys_select_leftright(), graphkeys_select_linked_exec(), markers_selectkeys_between(), poselib_apply_pose(), region_select_action_keys(), sethandles_action_keys(), and sethandles_graph_keys().
| void ANIM_editkeyframes_refresh | ( | struct bAnimContext * | ac | ) |
Definition at line 482 of file keyframes_edit.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIM_UPDATE_HANDLES, ANIM_UPDATE_ORDER, ANIMFILTER_DATA_VISIBLE, bAnimContext::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::next, NULL, and bAnimListElem::update.
Referenced by special_aftertrans_update__actedit(), and special_aftertrans_update__graph().
| KeyframeEditFunc ANIM_editkeyframes_select | ( | short | mode | ) |
Definition at line 1538 of file keyframes_edit.c.
References SELECT_ADD, select_bezier_add(), select_bezier_invert(), select_bezier_subtract(), SELECT_INVERT, and SELECT_SUBTRACT.
Referenced by actkeys_mselect_channel_only(), actkeys_mselect_column(), actkeys_mselect_single(), actkeys_select_leftright(), actkeys_select_linked_exec(), box_select_action(), box_select_graphkeys(), columnselect_action_keys(), columnselect_graph_keys(), deselect_action_keys(), graphkeys_mselect_column(), graphkeys_select_leftright(), graphkeys_select_linked_exec(), markers_selectkeys_between(), mouse_graph_keys(), and region_select_action_keys().
| KeyframeEditFunc ANIM_editkeyframes_snap | ( | short | mode | ) |
Definition at line 921 of file keyframes_edit.c.
References snap_bezier_cframe(), snap_bezier_horizontal(), snap_bezier_nearest(), snap_bezier_nearestsec(), snap_bezier_nearmarker(), snap_bezier_time(), snap_bezier_value(), SNAP_KEYS_CURFRAME, SNAP_KEYS_HORIZONTAL, SNAP_KEYS_NEARFRAME, SNAP_KEYS_NEARMARKER, SNAP_KEYS_NEARSEC, SNAP_KEYS_TIME, and SNAP_KEYS_VALUE.
Referenced by snap_action_keys(), and snap_graph_keys().
| short ANIM_fcurve_keyframes_loop | ( | KeyframeEditData * | ked, |
| struct FCurve * | fcu, | ||
| KeyframeEditFunc | key_ok, | ||
| KeyframeEditFunc | key_cb, | ||
| FcuEditFunc | fcu_cb | ||
| ) |
Definition at line 74 of file keyframes_edit.c.
References FCurve::bezt, KeyframeEditData::curflags, KeyframeEditData::curIndex, ELEM, KeyframeEditData::fcu, and NULL.
Referenced by act_keyframes_loop(), actkeys_framejump_exec(), actkeys_mselect_column(), actkeys_select_leftright(), actkeys_select_linked_exec(), agrp_keyframes_loop(), ANIM_animchannel_keyframes_loop(), ANIM_animchanneldata_keyframes_loop(), ANIM_animdata_keyframe_callback(), ANIM_nla_mapping_apply_fcurve(), box_select_graphkeys(), columnselect_action_keys(), columnselect_graph_keys(), copy_animedit_keys(), deselect_action_keys(), graphkeys_mselect_column(), graphkeys_select_leftright(), graphkeys_select_linked_exec(), markers_selectkeys_between(), mirror_action_keys(), mirror_graph_keys(), mouse_graph_keys(), ob_keyframes_loop(), scene_keyframes_loop(), select_moreless_action_keys(), select_moreless_graph_keys(), seteasing_graph_keys(), sethandles_action_keys(), sethandles_graph_keys(), setipo_graph_keys(), setkeytype_action_keys(), snap_action_keys(), snap_graph_keys(), sum_selected_keyframes(), and summary_keyframes_loop().
| void ANIM_fcurves_copybuf_free | ( | void | ) |
Definition at line 701 of file keyframes_general.c.
References animcopy_firstframe, animcopy_lastframe, animcopybuf, tAnimCopybufItem::bezt, BLI_freelinkN(), BLI_listbase_clear(), ListBase::first, MEM_freeN, tAnimCopybufItem::next, and tAnimCopybufItem::rna_path.
Referenced by copy_action_keys(), copy_animedit_keys(), copy_graph_keys(), and WM_exit_ex().
| short bezt_calc_average | ( | KeyframeEditData * | ked, |
| BezTriple * | bezt | ||
| ) |
Helper callback for <animeditor>_cfrasnap_exec() -> used to help get the average time of all selected beztriples
Definition at line 794 of file keyframes_edit.c.
References KeyframeEditData::f1, KeyframeEditData::f2, BezTriple::f2, KeyframeEditData::i1, SELECT, and BezTriple::vec.
Referenced by actkeys_framejump_exec(), and sum_selected_keyframes().
| void bezt_remap_times | ( | KeyframeEditData * | ked, |
| struct BezTriple * | bezt | ||
| ) |
Definition at line 831 of file keyframes_edit.c.
References KeyframeEditData::data, KeyframeEditCD_Remap::newMax, KeyframeEditCD_Remap::newMin, KeyframeEditCD_Remap::oldMax, KeyframeEditCD_Remap::oldMin, and BezTriple::vec.
| short bezt_selmap_flush | ( | KeyframeEditData * | ked, |
| struct BezTriple * | bezt | ||
| ) |
Definition at line 1657 of file keyframes_edit.c.
References BEZT_DESEL_ALL, BEZT_SEL_ALL, KeyframeEditData::curIndex, and KeyframeEditData::data.
Referenced by select_moreless_action_keys(), and select_moreless_graph_keys().
| short bezt_to_cfraelem | ( | KeyframeEditData * | ked, |
| struct BezTriple * | bezt | ||
| ) |
Definition at line 815 of file keyframes_edit.c.
References BLI_addtail(), CfraElem::cfra, BezTriple::f2, KeyframeEditData::list, MEM_callocN, SELECT, and BezTriple::vec.
Referenced by columnselect_action_keys(), and columnselect_graph_keys().
| void clean_fcurve | ( | struct bAnimContext * | ac, |
| bAnimListElem * | ale, | ||
| float | thresh, | ||
| bool | cleardefault | ||
| ) |
Basic F-Curve 'cleanup' function that removes 'double points' and unnecessary keyframes on linear-segments only optionally clears up curve if one keyframe with default value remains.
Definition at line 189 of file keyframes_general.c.
References bAnimListElem::adt, ANIM_fcurve_delete_from_animdata(), FCurve::array_index, FCurve::bezt, BKE_fcurve_is_empty(), clear_fcurve_keys(), BezTriple::f1, bAnimListElem::id, if(), insert_bezt_fcurve(), IS_EQT, bAnimListElem::key_data, MEM_freeN, next, NULL, PROP_FLOAT, ptr, RNA_id_pointer_create(), FCurve::rna_path, RNA_path_resolve_property(), RNA_property_float_get_default_index(), RNA_property_type(), SELECT, FCurve::totvert, and BezTriple::vec.
Referenced by clean_action_keys(), and clean_graph_keys().
| void clear_fcurve_keys | ( | struct FCurve * | fcu | ) |
Definition at line 137 of file keyframes_general.c.
References FCurve::bezt, MEM_freeN, NULL, and FCurve::totvert.
Referenced by clean_fcurve(), delete_fcurve_keys(), and paste_animedit_keys_fcurve().
| short copy_animedit_keys | ( | struct bAnimContext * | ac, |
| ListBase * | anim_data | ||
| ) |
Definition at line 732 of file keyframes_general.c.
References ANIM_editkeyframes_ok(), ANIM_fcurve_keyframes_loop(), ANIM_fcurves_copybuf_free(), animcopy_cfra, animcopy_firstframe, animcopy_lastframe, animcopybuf, FCurve::array_index, tAnimCopybufItem::bezt, FCurve::bezt, BEZT_ISSEL_ANY, BEZT_OK_SELECTED, BEZT_SEL_ALL, BKE_pose_channel_find_name(), BLI_addtail(), BLI_str_quoted_substrN(), CFRA, ELEM, ListBase::first, FCurve::grp, GS, bAnimListElem::id, Object::id, ID_OB, if(), bAnimListElem::key_data, ListBase::last, MEM_callocN, MEM_dupallocN, MEM_freeN, ID::name, bAnimListElem::next, NULL, OB_ARMATURE, Object::pose, FCurve::rna_path, scene, bAnimContext::scene, tAnimCopybufItem::totvert, and BezTriple::vec.
Referenced by copy_action_keys(), and copy_graph_keys().
| bool decimate_fcurve | ( | bAnimListElem * | ale, |
| float | remove_ratio, | ||
| float | error_sq_max | ||
| ) |
F-Curve 'decimate' function that removes a certain ratio of curve points that will affect the curves overall shape the least. If you want to remove based on a error margin, set remove_ratio to 1 and simply specify the desired error_sq_max. Otherwise, set the error margin to FLT_MAX.
Definition at line 407 of file keyframes_general.c.
References FCurve::bezt, BEZT_FLAG_TEMP_TAG, decimate_fcurve_segment(), BezTriple::f2, if(), insert_bezt_fcurve(), bAnimListElem::key_data, MEM_freeN, NULL, prepare_for_decimate(), SELECT, and FCurve::totvert.
Referenced by decimate_graph_keys().
| void delete_fcurve_key | ( | FCurve * | fcu, |
| int | index, | ||
| bool | do_recalc | ||
| ) |
Only delete the nominated keyframe from provided F-Curve. Not recommended to be used many times successively. For that there is delete_fcurve_keys().
Definition at line 71 of file keyframes_general.c.
References abs(), FCurve::bezt, calchandles_fcurve(), MEM_freeN, NULL, and FCurve::totvert.
Referenced by delete_key_button_exec(), delete_keyframe_fcurve(), insert_keyframe_value(), poselib_remove_exec(), posttrans_fcurve_clean(), and pyrna_struct_keyframe_delete().
| bool delete_fcurve_keys | ( | struct FCurve * | fcu | ) |
Definition at line 108 of file keyframes_general.c.
References FCurve::active_keyframe_index, FCurve::bezt, BKE_fcurve_active_keyframe_set(), clear_fcurve_keys(), BezTriple::f2, NULL, SELECT, and FCurve::totvert.
Referenced by delete_action_keys(), delete_graph_keys(), and paste_animedit_keys_fcurve().
| void duplicate_fcurve_keys | ( | struct FCurve * | fcu | ) |
Definition at line 150 of file keyframes_general.c.
References FCurve::bezt, BEZT_DESEL_ALL, BEZT_SEL_ALL, ELEM, BezTriple::f2, MEM_callocN, MEM_freeN, NULL, SELECT, and FCurve::totvert.
Referenced by duplicate_action_keys(), and duplicate_graph_keys().
| bool keyframe_region_circle_test | ( | const KeyframeEdit_CircleData * | data_circle, |
| const float | xy[2] | ||
| ) |
Called from ok_bezier_region_circle and ok_bezier_channel_circle
Definition at line 689 of file keyframes_edit.c.
References BLI_rctf_isect_pt_v(), BLI_rctf_transform_pt_v(), len_squared_v2(), KeyframeEdit_CircleData::mval, KeyframeEdit_CircleData::radius_squared, KeyframeEdit_CircleData::rectf_scaled, and KeyframeEdit_CircleData::rectf_view.
Referenced by ED_gpencil_layer_frames_select_region(), ED_masklayer_frames_select_region(), and ok_bezier_channel_circle().
| bool keyframe_region_lasso_test | ( | const KeyframeEdit_LassoData * | data_lasso, |
| const float | xy[2] | ||
| ) |
Called from ok_bezier_region_lasso and ok_bezier_channel_lasso
Definition at line 626 of file keyframes_edit.c.
References BLI_lasso_is_point_inside(), BLI_rctf_isect_pt_v(), BLI_rctf_transform_pt_v(), KeyframeEdit_LassoData::mcoords, KeyframeEdit_LassoData::mcoords_len, KeyframeEdit_LassoData::rectf_scaled, and KeyframeEdit_LassoData::rectf_view.
Referenced by ED_gpencil_layer_frames_select_region(), ED_masklayer_frames_select_region(), and ok_bezier_channel_lasso().
| short paste_animedit_keys | ( | bAnimContext * | ac, |
| ListBase * | anim_data, | ||
| const eKeyPasteOffset | offset_mode, | ||
| const eKeyMergeMode | merge_mode, | ||
| bool | flip | ||
| ) |
This function pastes data from the keyframes copy/paste buffer
Definition at line 1126 of file keyframes_general.c.
References ANIM_animdata_update(), ANIM_nla_mapping_apply_fcurve(), ANIM_nla_mapping_get(), ANIM_UPDATE_DEFAULT, animcopy_cfra, animcopy_firstframe, animcopy_lastframe, animcopybuf, BKE_report(), BLI_listbase_is_empty(), BLI_listbase_is_single(), bAnimContext::bmain, CFRA, bAnimListElem::data, ListBase::first, float(), bAnimListElem::key_data, KEYFRAME_PASTE_OFFSET_CFRA_END, KEYFRAME_PASTE_OFFSET_CFRA_RELATIVE, KEYFRAME_PASTE_OFFSET_CFRA_START, KEYFRAME_PASTE_OFFSET_NONE, bAnimListElem::next, NULL, paste_animedit_keys_fcurve(), pastebuf_match_index_only(), pastebuf_match_path_full(), pastebuf_match_path_property(), bAnimContext::reports, RPT_ERROR, scene, bAnimContext::scene, and bAnimListElem::update.
Referenced by paste_action_keys(), and paste_graph_keys().
| void sample_fcurve | ( | struct FCurve * | fcu | ) |
Definition at line 592 of file keyframes_general.c.
References FCurve::bezt, BEZT_ISSEL_ANY, BEZT_KEYTYPE_BREAKDOWN, calchandles_fcurve(), ceil(), evaluate_fcurve(), float(), floor(), insert_vert_fcurve(), MEM_callocN, MEM_freeN, next, NULL, and BezTriple::vec.
Referenced by sample_action_keys(), and sample_graph_keys().
| void smooth_fcurve | ( | struct FCurve * | fcu | ) |
Definition at line 488 of file keyframes_general.c.
References FCurve::bezt, BEZT_ISSEL_ANY, calchandles_fcurve(), ELEM, tSmooth_Bezt::h1, tSmooth_Bezt::h2, tSmooth_Bezt::h3, MEM_callocN, MEM_freeN, NULL, FCurve::totvert, BezTriple::vec, x, tSmooth_Bezt::y1, tSmooth_Bezt::y2, and tSmooth_Bezt::y3.
Referenced by graphkeys_smooth_exec().