|
Blender
V2.59
|
#include <stdio.h>#include <stddef.h>#include <string.h>#include <math.h>#include <float.h>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_math.h"#include "BLI_dynstr.h"#include "BLI_utildefines.h"#include "DNA_anim_types.h"#include "DNA_armature_types.h"#include "DNA_constraint_types.h"#include "DNA_key_types.h"#include "DNA_material_types.h"#include "DNA_scene_types.h"#include "DNA_object_types.h"#include "BKE_animsys.h"#include "BKE_action.h"#include "BKE_armature.h"#include "BKE_constraint.h"#include "BKE_depsgraph.h"#include "BKE_fcurve.h"#include "BKE_main.h"#include "BKE_nla.h"#include "BKE_global.h"#include "BKE_context.h"#include "BKE_report.h"#include "BKE_key.h"#include "BKE_material.h"#include "ED_anim_api.h"#include "ED_keyframing.h"#include "ED_keyframes_edit.h"#include "ED_screen.h"#include "UI_interface.h"#include "WM_api.h"#include "WM_types.h"#include "RNA_access.h"#include "RNA_define.h"#include "RNA_enum_types.h"#include "anim_intern.h"Go to the source code of this file.
Enumerations | |
| enum | { KEYNEEDED_DONTADD = 0, KEYNEEDED_JUSTADD, KEYNEEDED_DELPREV, KEYNEEDED_DELNEXT } |
| enum | { VISUALKEY_NONE = 0, VISUALKEY_LOC, VISUALKEY_ROT } |
| enum | { COMMONKEY_MODE_INSERT = 0, COMMONKEY_MODE_DELETE } |
Functions | |
| short | ANIM_get_keyframing_flags (Scene *scene, short incl_mode) |
| bAction * | verify_adt_action (ID *id, short add) |
| FCurve * | verify_fcurve (bAction *act, const char group[], const char rna_path[], const int array_index, short add) |
| int | insert_bezt_fcurve (FCurve *fcu, BezTriple *bezt, short flag) |
| int | insert_vert_fcurve (FCurve *fcu, float x, float y, short flag) |
| static short | new_key_needed (FCurve *fcu, float cFrame, float nValue) |
| static float | setting_get_rna_value (PointerRNA *ptr, PropertyRNA *prop, int index) |
| static short | visualkey_can_use (PointerRNA *ptr, PropertyRNA *prop) |
| static float | visualkey_get_value (PointerRNA *ptr, PropertyRNA *prop, int array_index) |
| short | insert_keyframe_direct (ReportList *reports, PointerRNA ptr, PropertyRNA *prop, FCurve *fcu, float cfra, short flag) |
| short | insert_keyframe (ReportList *reports, ID *id, bAction *act, const char group[], const char rna_path[], int array_index, float cfra, short flag) |
| short | delete_keyframe (ReportList *reports, ID *id, bAction *act, const char group[], const char rna_path[], int array_index, float cfra, short UNUSED(flag)) |
| static int | modify_key_op_poll (bContext *C) |
| static int | insert_key_exec (bContext *C, wmOperator *op) |
| void | ANIM_OT_keyframe_insert (wmOperatorType *ot) |
| static int | insert_key_menu_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event)) |
| void | ANIM_OT_keyframe_insert_menu (wmOperatorType *ot) |
| static int | delete_key_exec (bContext *C, wmOperator *op) |
| void | ANIM_OT_keyframe_delete (wmOperatorType *ot) |
| static int | delete_key_v3d_exec (bContext *C, wmOperator *op) |
| void | ANIM_OT_keyframe_delete_v3d (wmOperatorType *ot) |
| static int | insert_key_button_exec (bContext *C, wmOperator *op) |
| void | ANIM_OT_keyframe_insert_button (wmOperatorType *ot) |
| static int | delete_key_button_exec (bContext *C, wmOperator *op) |
| void | ANIM_OT_keyframe_delete_button (wmOperatorType *ot) |
| int | autokeyframe_cfra_can_key (Scene *scene, ID *id) |
| short | fcurve_frame_has_keyframe (FCurve *fcu, float frame, short filter) |
| static short | action_frame_has_keyframe (bAction *act, float frame, short filter) |
| static short | object_frame_has_keyframe (Object *ob, float frame, short filter) |
| short | id_frame_has_keyframe (ID *id, float frame, short filter) |
Definition in file keyframing.c.
| anonymous enum |
Definition at line 364 of file keyframing.c.
| anonymous enum |
Definition at line 519 of file keyframing.c.
| anonymous enum |
Definition at line 1049 of file keyframing.c.
| static short action_frame_has_keyframe | ( | bAction * | act, |
| float | frame, | ||
| short | filter | ||
| ) | [static] |
Definition at line 1594 of file keyframing.c.
References ACT_MUTED, ANIMFILTER_KEYS_MUTED, FCurve::bezt, bAction::curves, fcurve_frame_has_keyframe(), ListBase::first, bAction::flag, FCurve::next, NULL, and FCurve::totvert.
Referenced by id_frame_has_keyframe(), and object_frame_has_keyframe().
| short ANIM_get_keyframing_flags | ( | Scene * | scene, |
| short | incl_mode | ||
| ) |
Definition at line 90 of file keyframing.c.
References INSERTKEY_MATRIX, INSERTKEY_NEEDED, INSERTKEY_REPLACE, INSERTKEY_XYZ2RGB, IS_AUTOKEY_FLAG, and IS_AUTOKEY_MODE.
Referenced by achannel_setting_slider_cb(), achannel_setting_slider_shapekey_cb(), add_default_keyingset_exec(), add_keyingset_button_exec(), ANIM_apply_keyingset(), autokeyframe_ob_cb_func(), autokeyframe_pose_cb_func(), insert_action_keys(), insert_graph_keys(), insert_key_button_exec(), and ui_but_anim_autokey().
| void ANIM_OT_keyframe_delete | ( | wmOperatorType * | ot | ) |
Definition at line 1285 of file keyframing.c.
References ANIM_keying_sets_enum_itemf(), delete_key_exec(), wmOperatorType::description, DummyRNA_DEFAULT_items, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, modify_key_op_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_delete_button | ( | wmOperatorType * | ot | ) |
Definition at line 1521 of file keyframing.c.
References delete_key_button_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, modify_key_op_poll(), wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_delete_v3d | ( | wmOperatorType * | ot | ) |
Definition at line 1359 of file keyframing.c.
References delete_key_v3d_exec(), wmOperatorType::description, ED_operator_areaactive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and WM_operator_confirm().
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_insert | ( | wmOperatorType * | ot | ) |
Definition at line 1138 of file keyframing.c.
References ANIM_keying_sets_enum_itemf(), wmOperatorType::description, DummyRNA_DEFAULT_items, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, insert_key_exec(), modify_key_op_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_insert_button | ( | wmOperatorType * | ot | ) |
Definition at line 1449 of file keyframing.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, insert_key_button_exec(), modify_key_op_poll(), wmOperatorType::name, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_insert_menu | ( | wmOperatorType * | ot | ) |
Definition at line 1191 of file keyframing.c.
References ANIM_keying_sets_enum_itemf(), wmOperatorType::description, DummyRNA_DEFAULT_items, ED_operator_areaactive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, insert_key_exec(), insert_key_menu_invoke(), wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
Definition at line 1541 of file keyframing.c.
References ANIMFILTER_KEYS_LOCAL, CFRA, id_frame_has_keyframe(), IS_AUTOKEY_MODE, and IS_AUTOKEY_ON.
Referenced by autokeyframe_ob_cb_func(), autokeyframe_pose_cb_func(), move_camera(), object_clear_transform_generic_exec(), pose_clear_transform_generic_exec(), pose_flip_quats_exec(), pose_paste_exec(), poseAnim_mapping_autoKeyframe(), poselib_keytag_pose(), and ui_but_anim_autokey().
| static int delete_key_button_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1468 of file keyframing.c.
References CFRA, CTX_data_main(), CTX_data_scene(), DAG_ids_flush_update(), PointerRNA::data, delete_keyframe(), Global::f, G, G_DEBUG, PointerRNA::id, length(), MEM_freeN(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_path_from_ID_to_property(), RNA_property_array_length(), uiContextActiveProperty(), uiContextAnimUpdate(), and WM_event_add_notifier().
Referenced by ANIM_OT_keyframe_delete_button().
| static int delete_key_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1231 of file keyframing.c.
References Scene::active_keyingset, ANIM_apply_keyingset(), BKE_report(), BKE_reportf(), BLI_findlink(), builtin_keyingsets, CFRA, CTX_data_main(), CTX_data_scene(), DAG_ids_flush_update(), Global::f, G, G_DEBUG, Scene::keyingsets, MODIFYKEY_INVALID_CONTEXT, MODIFYKEY_MODE_DELETE, NA_EDITED, KeyingSet::name, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_ERROR, RPT_INFO, RPT_WARNING, and WM_event_add_notifier().
Referenced by ANIM_OT_keyframe_delete().
| static int delete_key_v3d_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1321 of file keyframing.c.
References AnimData::action, FCurve::array_index, BKE_reportf(), CFRA, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), CTX_data_scene(), bAction::curves, DAG_ids_flush_update(), delete_keyframe(), ListBase::first, ID::name, NC_OBJECT, ND_KEYS, FCurve::next, NULL, OB_RECALC_OB, OPERATOR_FINISHED, wmOperator::reports, FCurve::rna_path, RPT_INFO, and WM_event_add_notifier().
Referenced by ANIM_OT_keyframe_delete_v3d().
| short delete_keyframe | ( | ReportList * | reports, |
| ID * | id, | ||
| bAction * | act, | ||
| const char | group[], | ||
| const char | rna_path[], | ||
| int | array_index, | ||
| float | cfra, | ||
| short | UNUSEDflag | ||
| ) |
Definition at line 942 of file keyframing.c.
References AnimData::action, AGRP_PROTECTED, ANIM_fcurve_delete_from_animdata(), FCurve::bezt, binarysearch_bezt_index(), BKE_animdata_from_id(), BKE_nla_tweakedit_remap(), BKE_report(), BKE_reportf(), delete_fcurve_key(), ELEM, Global::f, FCURVE_PROTECTED, FCurve::flag, bActionGroup::flag, FMI_TYPE_GENERATE_CURVE, G, G_DEBUG, FCurve::grp, GS, i, ID_OB, list_has_suitable_fmodifier(), FCurve::modifiers, ID::name, NLATIME_CONVERT_UNMAP, NULL, RNA_id_pointer_create(), RNA_path_resolve(), RNA_property_array_length(), RPT_ERROR, FCurve::totvert, and verify_fcurve().
Referenced by ANIM_apply_keyingset(), delete_key_button_exec(), delete_key_v3d_exec(), and pyrna_struct_keyframe_delete().
| short fcurve_frame_has_keyframe | ( | FCurve * | fcu, |
| float | frame, | ||
| short | filter | ||
| ) |
Definition at line 1567 of file keyframing.c.
References ANIMFILTER_KEYS_MUTED, FCurve::bezt, binarysearch_bezt_index(), ELEM, FCURVE_MUTED, FCurve::flag, i, NULL, FCurve::totvert, and tAnimCopybufItem::totvert.
Referenced by achannel_setting_slider_cb(), achannel_setting_slider_shapekey_cb(), action_frame_has_keyframe(), and ui_but_anim_flag().
| short id_frame_has_keyframe | ( | ID * | id, |
| float | frame, | ||
| short | filter | ||
| ) |
Definition at line 1680 of file keyframing.c.
References AnimData::action, action_frame_has_keyframe(), BKE_animdata_from_id(), GS, ID_OB, ID_SCE, ID::name, NULL, and object_frame_has_keyframe().
Referenced by autokeyframe_cfra_can_key(), draw_selected_name(), and object_frame_has_keyframe().
Definition at line 219 of file keyframing.c.
References FCurve::bezt, binarysearch_bezt_index(), BezTriple::f1, BezTriple::f2, BezTriple::f3, FCurve::fpt, i, INSERTKEY_REPLACE, MEM_callocN(), MEM_freeN(), NULL, FCurve::totvert, tAnimCopybufItem::totvert, and BezTriple::vec.
Referenced by AnimationImporter::add_bezt(), insert_vert_fcurve(), and paste_animedit_keys_fcurve().
| static int insert_key_button_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1379 of file keyframing.c.
References ANIM_get_keyframing_flags(), BKE_report(), CFRA, CTX_data_main(), CTX_data_scene(), DAG_ids_flush_update(), PointerRNA::data, Global::f, NlaStrip::fcurves, G, G_DEBUG, PointerRNA::id, insert_keyframe(), insert_keyframe_direct(), length(), list_find_fcurve(), MEM_freeN(), NA_EDITED, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_NlaStrip, RNA_path_from_ID_to_property(), RNA_property_animateable(), RNA_property_array_length(), RNA_property_identifier(), RPT_WARNING, PointerRNA::type, uiContextActiveProperty(), uiContextAnimUpdate(), and WM_event_add_notifier().
Referenced by ANIM_OT_keyframe_insert_button().
| static int insert_key_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 1084 of file keyframing.c.
References Scene::active_keyingset, ANIM_apply_keyingset(), BKE_report(), BKE_reportf(), BLI_findlink(), builtin_keyingsets, CFRA, CTX_data_main(), CTX_data_scene(), DAG_ids_flush_update(), Global::f, G, G_DEBUG, Scene::keyingsets, MODIFYKEY_INVALID_CONTEXT, MODIFYKEY_MODE_INSERT, NA_EDITED, KeyingSet::name, NC_ANIMATION, ND_KEYFRAME, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_enum_get(), RPT_ERROR, RPT_INFO, RPT_WARNING, and WM_event_add_notifier().
Referenced by ANIM_OT_keyframe_insert(), and ANIM_OT_keyframe_insert_menu().
| static int insert_key_menu_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 1172 of file keyframing.c.
References Scene::active_keyingset, ANIM_keying_sets_menu_setup(), CTX_data_scene(), wmOperatorType::exec, wmOperatorType::name, OPERATOR_CANCELLED, wmOperator::ptr, RNA_boolean_get(), RNA_boolean_set(), RNA_enum_set(), and wmOperator::type.
Referenced by ANIM_OT_keyframe_insert_menu().
| short insert_keyframe | ( | ReportList * | reports, |
| ID * | id, | ||
| bAction * | act, | ||
| const char | group[], | ||
| const char | rna_path[], | ||
| int | array_index, | ||
| float | cfra, | ||
| short | flag | ||
| ) |
Definition at line 837 of file keyframing.c.
References BKE_animdata_from_id(), BKE_nla_tweakedit_remap(), BKE_reportf(), FCurve::color_mode, ELEM5, FCURVE_COLOR_AUTO_RGB, GS, ID_OB, insert_keyframe_direct(), INSERTKEY_REPLACE, INSERTKEY_XYZ2RGB, ID::name, NLATIME_CONVERT_UNMAP, NULL, PROP_COLOR, PROP_COORDS, PROP_EULER, PROP_TRANSLATION, PROP_XYZ, RNA_id_pointer_create(), RNA_path_resolve(), RNA_property_array_length(), RNA_property_subtype(), RPT_ERROR, FCurve::totvert, verify_adt_action(), and verify_fcurve().
Referenced by ANIM_apply_keyingset(), autokeyframe_ob_cb_func(), autokeyframe_pose_cb_func(), insert_action_keys(), insert_graph_keys(), insert_key_button_exec(), pyrna_struct_keyframe_insert(), ui_but_anim_autokey(), and KX_BlenderSceneConverter::WritePhysicsObjectToAnimationIpo().
| short insert_keyframe_direct | ( | ReportList * | reports, |
| PointerRNA | ptr, | ||
| PropertyRNA * | prop, | ||
| FCurve * | fcu, | ||
| float | cfra, | ||
| short | flag | ||
| ) |
Definition at line 716 of file keyframing.c.
References FCurve::array_index, BKE_report(), BKE_reportf(), PointerRNA::data, delete_fcurve_key(), FCURVE_DISCRETE_VALUES, FCURVE_INT_VALUES, fcurve_is_keyframable(), FCurve::flag, PointerRNA::id, insert_vert_fcurve(), INSERTKEY_MATRIX, INSERTKEY_NEEDED, KEYNEEDED_DELNEXT, KEYNEEDED_DELPREV, new_key_needed(), NULL, PROP_FLOAT, PROP_INT, FCurve::rna_path, RNA_path_resolve(), RNA_property_type(), RPT_ERROR, setting_get_rna_value(), FCurve::totvert, visualkey_can_use(), and visualkey_get_value().
Referenced by achannel_setting_slider_cb(), achannel_setting_slider_shapekey_cb(), insert_key_button_exec(), and insert_keyframe().
| int insert_vert_fcurve | ( | FCurve * | fcu, |
| float | x, | ||
| float | y, | ||
| short | flag | ||
| ) |
Definition at line 300 of file keyframing.c.
References FCurve::bezt, tAnimCopybufItem::bezt, calchandles_fcurve(), BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, insert_bezt_fcurve(), INSERTKEY_FAST, INSERTKEY_REPLACE, BezTriple::ipo, SELECT, FCurve::totvert, tAnimCopybufItem::totvert, and BezTriple::vec.
Referenced by clean_fcurve(), graphkeys_click_insert_exec(), insert_action_keys(), insert_graph_keys(), insert_keyframe_direct(), and sample_fcurve().
| static int modify_key_op_poll | ( | bContext * | C | ) | [static] |
Definition at line 1058 of file keyframing.c.
References CTX_data_scene(), CTX_wm_area(), CTX_wm_space_outliner(), ELEM, ELEM3, ELEM4, NULL, SpaceOops::outlinevis, SO_GROUPS, SO_KEYMAP, SO_LIBRARIES, SO_SEQUENCE, SO_USERDEF, and SO_VERSE_SESSION.
Referenced by ANIM_OT_keyframe_delete(), ANIM_OT_keyframe_delete_button(), ANIM_OT_keyframe_insert(), and ANIM_OT_keyframe_insert_button().
| static short new_key_needed | ( | FCurve * | fcu, |
| float | cFrame, | ||
| float | nValue | ||
| ) | [static] |
Definition at line 377 of file keyframing.c.
References FCurve::bezt, tAnimCopybufItem::bezt, evaluate_fcurve(), i, IS_EQF, KEYNEEDED_DELNEXT, KEYNEEDED_DELPREV, KEYNEEDED_DONTADD, KEYNEEDED_JUSTADD, NULL, tAnimCopybufItem::prev, FCurve::totvert, and BezTriple::vec.
Referenced by insert_keyframe_direct().
| static short object_frame_has_keyframe | ( | Object * | ob, |
| float | frame, | ||
| short | filter | ||
| ) | [static] |
Definition at line 1622 of file keyframing.c.
References Object::actcol, AnimData::action, action_frame_has_keyframe(), Object::adt, ANIMFILTER_KEYS_ACTIVE, ANIMFILTER_KEYS_LOCAL, ANIMFILTER_KEYS_NOMAT, ANIMFILTER_KEYS_NOSKEY, give_current_material(), id_frame_has_keyframe(), NULL, ob_get_key(), and Object::totcol.
Referenced by id_frame_has_keyframe().
| static float setting_get_rna_value | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | index | ||
| ) | [static] |
Definition at line 483 of file keyframing.c.
References PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PROP_INT, RNA_property_array_length(), RNA_property_boolean_get(), RNA_property_boolean_get_index(), RNA_property_enum_get(), RNA_property_float_get(), RNA_property_float_get_index(), RNA_property_int_get(), RNA_property_int_get_index(), and RNA_property_type().
Referenced by insert_keyframe_direct(), and visualkey_get_value().
Definition at line 126 of file keyframing.c.
References AnimData::action, add_empty_action(), BKE_animdata_from_id(), BKE_id_add_animdata(), BLI_snprintf(), ID::name, and NULL.
Referenced by achannel_setting_slider_shapekey_cb(), insert_keyframe(), parent_set_exec(), and AnimationImporter::translate_animation().
| FCurve* verify_fcurve | ( | bAction * | act, |
| const char | group[], | ||
| const char | rna_path[], | ||
| const int | array_index, | ||
| short | add | ||
| ) | [read] |
Definition at line 155 of file keyframing.c.
References action_groups_add_channel(), action_groups_add_new(), action_groups_find_named(), FCurve::array_index, tAnimCopybufItem::array_index, BLI_addtail(), BLI_strdupn(), bAction::curves, ELEM, FCURVE_ACTIVE, FCURVE_AUTO_HANDLES, FCURVE_SELECTED, FCURVE_VISIBLE, ListBase::first, FCurve::flag, tAnimCopybufItem::grp, list_find_fcurve(), MEM_callocN(), NULL, and FCurve::rna_path.
Referenced by achannel_setting_slider_shapekey_cb(), delete_keyframe(), insert_keyframe(), and parent_set_exec().
| static short visualkey_can_use | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop | ||
| ) | [static] |
Definition at line 531 of file keyframing.c.
References CONSTRAINT_DISABLE, CONSTRAINT_TYPE_CHILDOF, CONSTRAINT_TYPE_DISTLIMIT, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_LOCKTRACK, CONSTRAINT_TYPE_LOCLIKE, CONSTRAINT_TYPE_LOCLIMIT, CONSTRAINT_TYPE_MINMAX, CONSTRAINT_TYPE_ROTLIKE, CONSTRAINT_TYPE_ROTLIMIT, CONSTRAINT_TYPE_TRACKTO, CONSTRAINT_TYPE_TRANSFORM, CONSTRAINT_TYPE_TRANSLIKE, bPoseChannel::constraints, Object::constraints, PointerRNA::data, ELEM, ELEM3, bConstraint::enforce, ListBase::first, bConstraint::flag, bConstraint::next, NULL, RNA_Object, RNA_PoseBone, RNA_property_identifier(), bConstraint::type, PointerRNA::type, VISUALKEY_LOC, VISUALKEY_NONE, and VISUALKEY_ROT.
Referenced by insert_keyframe_direct().
| static float visualkey_get_value | ( | PointerRNA * | ptr, |
| PropertyRNA * | prop, | ||
| int | array_index | ||
| ) | [static] |
Definition at line 637 of file keyframing.c.
References tAnimCopybufItem::array_index, bPoseChannel::bone, BONE_CONNECTED, bPoseChannel::chan_mat, PointerRNA::data, Bone::flag, if(), mat4_to_eulO(), NULL, Object::obmat, Bone::parent, Object::parent, pchan_apply_mat4(), RNA_Object, RNA_PoseBone, RNA_property_identifier(), Object::rotmode, setting_get_rna_value(), TRUE, and PointerRNA::type.
Referenced by insert_keyframe_direct().