|
Blender V4.3
|
#include <cstddef>#include <cstdio>#include <fmt/format.h>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLT_translation.hh"#include "DNA_ID.h"#include "DNA_action_types.h"#include "DNA_anim_types.h"#include "DNA_armature_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BKE_action.hh"#include "BKE_anim_data.hh"#include "BKE_animsys.h"#include "BKE_armature.hh"#include "BKE_context.hh"#include "BKE_fcurve.hh"#include "BKE_global.hh"#include "BKE_idtype.hh"#include "BKE_lib_id.hh"#include "BKE_nla.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "ED_anim_api.hh"#include "ED_keyframing.hh"#include "ED_object.hh"#include "ED_screen.hh"#include "ANIM_action.hh"#include "ANIM_action_iterators.hh"#include "ANIM_action_legacy.hh"#include "ANIM_animdata.hh"#include "ANIM_bone_collections.hh"#include "ANIM_driver.hh"#include "ANIM_fcurve.hh"#include "ANIM_keyframing.hh"#include "ANIM_keyingsets.hh"#include "ANIM_rna.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "WM_api.hh"#include "WM_types.hh"#include "RNA_access.hh"#include "RNA_define.hh"#include "RNA_enum_types.hh"#include "RNA_path.hh"#include "RNA_prototypes.hh"#include "anim_intern.hh"Go to the source code of this file.
Enumerations | |
| enum | { COMMONKEY_MODE_INSERT = 0 , COMMONKEY_MODE_DELETE } |
| anonymous enum |
| Enumerator | |
|---|---|
| COMMONKEY_MODE_INSERT | |
| COMMONKEY_MODE_DELETE | |
Definition at line 146 of file editors/animation/keyframing.cc.
| void ANIM_OT_keyframe_clear_button | ( | wmOperatorType * | ot | ) |
Definition at line 1344 of file editors/animation/keyframing.cc.
References clear_key_button_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, modify_key_op_poll(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_clear_v3d | ( | wmOperatorType * | ot | ) |
Definition at line 824 of file editors/animation/keyframing.cc.
References clear_anim_v3d_exec(), clear_anim_v3d_invoke(), wmOperatorType::description, ED_operator_areaactive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_confirm_or_exec().
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_delete | ( | wmOperatorType * | ot | ) |
Definition at line 670 of file editors/animation/keyframing.cc.
References ANIM_keying_sets_enum_itemf(), delete_key_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, modify_key_op_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), rna_enum_dummy_DEFAULT_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_delete_button | ( | wmOperatorType * | ot | ) |
Definition at line 1280 of file editors/animation/keyframing.cc.
References delete_key_button_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, modify_key_op_poll(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_delete_by_name | ( | wmOperatorType * | ot | ) |
Definition at line 695 of file editors/animation/keyframing.cc.
References ANIM_keyingset_visit_for_search_no_poll(), delete_key_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, MAX_ID_NAME, modify_key_op_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, PROP_STRING_SEARCH_SUGGESTION, RNA_def_property_flag(), RNA_def_property_string_search_func_runtime(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_delete_v3d | ( | wmOperatorType * | ot | ) |
Definition at line 1015 of file editors/animation/keyframing.cc.
References delete_key_v3d_exec(), delete_key_v3d_invoke(), wmOperatorType::description, ED_operator_areaactive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, and WM_operator_properties_confirm_or_exec().
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_insert | ( | wmOperatorType * | ot | ) |
Definition at line 459 of file editors/animation/keyframing.cc.
References ANIM_keying_sets_enum_itemf(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, insert_key_exec(), insert_key_invoke(), wmOperatorType::invoke, modify_key_op_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), rna_enum_dummy_DEFAULT_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_insert_button | ( | wmOperatorType * | ot | ) |
Definition at line 1173 of file editors/animation/keyframing.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, insert_key_button_exec(), modify_key_op_poll(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_insert_by_name | ( | wmOperatorType * | ot | ) |
Definition at line 496 of file editors/animation/keyframing.cc.
References ANIM_keyingset_visit_for_search_no_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, keyframe_insert_with_keyingset_exec(), MAX_ID_NAME, modify_key_op_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, PROP_STRING_SEARCH_SUGGESTION, RNA_def_property_flag(), RNA_def_property_string_search_func_runtime(), RNA_def_string(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyframe_insert_menu | ( | wmOperatorType * | ot | ) |
Definition at line 584 of file editors/animation/keyframing.cc.
References ANIM_keying_sets_enum_itemf(), wmOperatorType::description, ED_operator_areaactive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, insert_key_menu_invoke(), wmOperatorType::invoke, keyframe_insert_with_keyingset_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, RNA_def_boolean(), RNA_def_enum(), RNA_def_enum_funcs(), RNA_def_property_flag(), rna_enum_dummy_DEFAULT_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
Checks whether the Action assigned to adt (if any) has any keyframes at the given frame. Since we're only concerned whether a keyframe exists, we can simply loop until a match is found.
For layered actions, this only checks for keyframes in the assigned slot.
Definition at line 1418 of file editors/animation/keyframing.cc.
References ACT_MUTED, AnimData::action, fcurve_frame_has_keyframe(), blender::animrig::legacy::fcurves_for_assigned_action(), and bAction::flag.
Referenced by id_frame_has_keyframe(), and object_frame_has_keyframe().
Definition at line 726 of file editors/animation/keyframing.cc.
References BKE_pose_channel_find_name(), BLI_str_quoted_substr(), bPoseChannel::bone, BONE_SELECTED, Bone::flag, Object::mode, bPoseChannel::name, OB_MODE_POSE, Object::pose, and FCurve::rna_path.
Referenced by clear_anim_v3d_exec().
|
static |
Definition at line 842 of file editors/animation/keyframing.cc.
References ANIM_bonecoll_is_visible_pchan(), BKE_fcurve_is_protected(), BKE_pose_channel_find_name(), BKE_reportf(), BLI_str_quoted_substr(), bPoseChannel::bone, BONE_HIDDEN_P, BONE_SELECTED, Object::data, Bone::flag, Object::id, Object::mode, bPoseChannel::name, ID::name, OB_MODE_POSE, Object::pose, FCurve::rna_path, and RPT_WARNING.
Referenced by delete_key_v3d_without_keying_set().
|
static |
Definition at line 756 of file editors/animation/keyframing.cc.
References AnimData::action, blender::animrig::animdata_fcurve_delete(), blender::animrig::animdata_remove_empty_action(), can_delete_fcurve(), CTX_DATA_BEGIN, DEG_id_tag_update(), ID_RECALC_TRANSFORM, blender::animrig::Action::is_action_layered(), and AnimData::slot_handle.
Referenced by ANIM_OT_keyframe_clear_v3d(), and clear_anim_v3d_invoke().
|
static |
Definition at line 810 of file editors/animation/keyframing.cc.
References ALERT_ICON_NONE, BLT_I18NCONTEXT_OPERATOR_DEFAULT, clear_anim_v3d_exec(), CTX_IFACE_, IFACE_, wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by ANIM_OT_keyframe_clear_v3d().
|
static |
Definition at line 1300 of file editors/animation/keyframing.cc.
References blender::animrig::clear_keyframe(), CTX_data_main(), PointerRNA::data, G, G_DEBUG, RNAPath::index, NA_REMOVED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, PointerRNA::owner_id, printf, ptr, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_path_from_ID_to_property(), UI_context_active_but_prop_get(), UI_context_update_anim_flag(), and WM_event_add_notifier().
Referenced by ANIM_OT_keyframe_clear_button().
|
static |
Definition at line 264 of file editors/animation/keyframing.cc.
References BLI_str_escape(), IDProperty::data, PointerRNA::data, IDPropertyData::group, Object::id, is_idproperty_keyable(), LISTBASE_FOREACH, MAX_IDPROP_NAME, PropertyRNA::name, bPoseChannel::prop, ID::properties, ptr, RNA_path_resolve_property(), ROT_MODE_AXISANGLE, ROT_MODE_QUAT, ROT_MODE_XYZ, ROT_MODE_XZY, ROT_MODE_YXZ, ROT_MODE_YZX, ROT_MODE_ZXY, ROT_MODE_ZYX, bPoseChannel::rotmode, Object::rotmode, PointerRNA::type, USER_ANIM_KEY_CHANNEL_CUSTOM_PROPERTIES, USER_ANIM_KEY_CHANNEL_LOCATION, USER_ANIM_KEY_CHANNEL_ROTATION, USER_ANIM_KEY_CHANNEL_ROTATION_MODE, and USER_ANIM_KEY_CHANNEL_SCALE.
Referenced by insert_key().
|
static |
Definition at line 1193 of file editors/animation/keyframing.cc.
References FCurve::bezt, BKE_fcurve_bezt_binarysearch_index(), BKE_fcurve_delete_key(), BKE_fcurve_find(), BKE_fcurve_handles_recalc(), BKE_fcurve_is_protected(), BKE_idtype_idcode_to_name(), BKE_nlastrip_has_curves_for_property(), BKE_reportf(), BKE_scene_frame_get(), CTX_data_main(), CTX_data_scene(), PointerRNA::data, blender::animrig::delete_keyframe(), NlaStrip::fcurves, G, G_DEBUG, GS, RNAPath::index, NA_REMOVED, NlaStrip::name, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, PointerRNA::owner_id, printf, ptr, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_path_from_ID_to_property(), RNA_property_identifier(), RPT_WARNING, FCurve::totvert, UI_context_active_but_prop_get(), UI_context_update_anim_flag(), and WM_event_add_notifier().
Referenced by ANIM_OT_keyframe_delete_button().
|
static |
Definition at line 619 of file editors/animation/keyframing.cc.
References CTX_data_scene(), delete_key_using_keying_set(), keyingset_get_from_op_with_error(), OPERATOR_CANCELLED, wmOperatorType::prop, and wmOperator::type.
Referenced by ANIM_OT_keyframe_delete(), and ANIM_OT_keyframe_delete_by_name().
|
static |
Definition at line 630 of file editors/animation/keyframing.cc.
References ANIM_apply_keyingset(), BKE_report(), BKE_reportf(), BKE_scene_frame_get(), CTX_data_scene(), blender::animrig::DELETE, wmOperator::flag, G, G_DEBUG, NA_REMOVED, KeyingSet::name, NC_ANIMATION, ND_KEYFRAME, OP_IS_INVOKE, OPERATOR_CANCELLED, OPERATOR_FINISHED, printf, wmOperator::reports, RPT_ERROR, RPT_INFO, RPT_WARNING, and WM_event_add_notifier().
Referenced by delete_key_exec(), and delete_key_v3d_exec().
|
static |
Definition at line 989 of file editors/animation/keyframing.cc.
References ANIM_scene_get_active_keyingset(), CTX_data_scene(), delete_key_using_keying_set(), and delete_key_v3d_without_keying_set().
Referenced by ANIM_OT_keyframe_delete_v3d(), and delete_key_v3d_invoke().
|
static |
Definition at line 1001 of file editors/animation/keyframing.cc.
References ALERT_ICON_NONE, delete_key_v3d_exec(), IFACE_, wmOperator::ptr, RNA_boolean_get(), and WM_operator_confirm_ex().
Referenced by ANIM_OT_keyframe_delete_v3d().
|
static |
Definition at line 894 of file editors/animation/keyframing.cc.
References AnimData::action, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_fcurve_is_empty(), BKE_nla_tweakedit_remap(), BKE_scene_frame_get(), can_delete_key(), CTX_DATA_BEGIN, CTX_data_scene(), DEG_id_tag_update(), blender::animrig::fcurve_delete_keyframe_at_time(), wmOperator::flag, ID_RECALC_ANIMATION_NO_FLUSH, ID_RECALC_TRANSFORM, blender::animrig::Action::is_action_layered(), FCurve::next, NLATIME_CONVERT_UNMAP, OP_IS_INVOKE, wmOperator::reports, and AnimData::slot_handle.
Referenced by delete_key_v3d_exec().
Add the given number of keyframes to the FCurve. Their coordinates are uninitialized, so the curve should not be used without further attention.
The newly created keys are selected, existing keys are not touched.
This can be used to allocate all the keys at once, and then update them afterwards.
Definition at line 118 of file editors/animation/keyframing.cc.
References FCurve::bezt, BEZT_IPO_BEZ, BLI_assert_msg, BezTriple::f1, BezTriple::f2, BezTriple::f3, BezTriple::h1, BezTriple::h2, HD_AUTO_ANIM, BezTriple::ipo, MEM_recallocN, SELECT, and FCurve::totvert.
Referenced by blender::bke::tests::testcurve_with_duplicates().
Lesser Keyframe Checking API call.
Checks if some F-Curve has a keyframe for a given frame.
Definition at line 1367 of file editors/animation/keyframing.cc.
References FCurve::bezt, BKE_fcurve_bezt_binarysearch_index(), ELEM, FCURVE_MUTED, FCurve::flag, and FCurve::totvert.
Referenced by achannel_setting_slider_cb(), achannel_setting_slider_nla_curve_cb(), assigned_action_has_keyframe_at(), and ui_but_anim_flag().
| bool fcurve_is_changed | ( | PointerRNA | ptr, |
| PropertyRNA * | prop, | ||
| FCurve * | fcu, | ||
| const AnimationEvalContext * | anim_eval_context ) |
Lesser Keyframe Checking API call.
Definition at line 1392 of file editors/animation/keyframing.cc.
References FCurve::array_index, calculate_fcurve(), compare_ff_relative(), blender::animrig::get_rna_values(), PathResolvedRNA::prop, PathResolvedRNA::prop_index, PathResolvedRNA::ptr, and ptr.
Referenced by ui_but_anim_flag().
|
static |
Definition at line 346 of file editors/animation/keyframing.cc.
References CTX_data_mode_enum(), CTX_data_selected_objects(), CTX_data_selected_pose_bones(), CTX_MODE_OBJECT, and CTX_MODE_POSE.
Referenced by insert_key().
Main Keyframe Checking API call.
Checks whether a keyframe exists for the given ID-block one the given frame. It is recommended to call this method over the other keyframe-checkers directly, in case some detail of the implementation changes...
| frame | The value of this is quite often result of BKE_scene_ctime_get() |
Definition at line 1472 of file editors/animation/keyframing.cc.
References assigned_action_has_keyframe_at(), BKE_animdata_from_id(), GS, ID_OB, ID_SCE, and object_frame_has_keyframe().
Referenced by blender::animrig::autokeyframe_cfra_can_key(), and draw_selected_name().
|
static |
Definition at line 366 of file editors/animation/keyframing.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_animsys_eval_context_construct(), BKE_id_is_editable(), BKE_reportf(), BKE_scene_frame_get(), construct_rna_paths(), CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), depsgraph, blender::animrig::CombinedKeyingResult::generate_reports(), blender::animrig::CombinedKeyingResult::get_count(), get_selection(), id_can_have_animdata(), ID_RECALC_ANIMATION_NO_FLUSH, blender::animrig::CombinedKeyingResult::merge(), NA_ADDED, ID::name, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_WARNING, selection, and WM_event_add_notifier().
Referenced by insert_key_exec().
|
static |
Definition at line 1035 of file editors/animation/keyframing.cc.
References AnimData::action, ANIM_deselect_keys_in_animation_editors(), BKE_animdata_from_id(), BKE_animsys_eval_context_construct(), BKE_fcurve_find(), BKE_fcurve_find_by_rna_context_ui(), BKE_report(), BKE_reportf(), BKE_scene_frame_get(), CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), PointerRNA::data, DEG_id_tag_update(), NlaStrip::fcurves, flag, blender::animrig::CombinedKeyingResult::get_count(), bAction::id, ID_RECALC_ANIMATION_NO_FLUSH, INSERTKEY_NOFLAGS, ToolSettings::keyframe_type, NA_ADDED, NC_ANIMATION, ND_KEYFRAME, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, PointerRNA::owner_id, ptr, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_id_pointer_create(), RNA_path_from_ID_to_property(), RNA_property_anim_editable(), RNA_property_identifier(), RPT_ERROR, RPT_WARNING, PointerRNA::type, UI_BUT_DRIVEN, UI_but_flag_is_set(), UI_context_active_but_prop_get(), UI_context_update_anim_flag(), and WM_event_add_notifier().
Referenced by ANIM_OT_keyframe_insert_button().
|
static |
Definition at line 435 of file editors/animation/keyframing.cc.
References ANIM_deselect_keys_in_animation_editors(), ANIM_keyingset_get_from_enum_type(), CTX_data_scene(), insert_key(), insert_key_with_keyingset(), wmOperator::ptr, and RNA_enum_get().
Referenced by ANIM_OT_keyframe_insert(), and insert_key_invoke().
|
static |
Definition at line 449 of file editors/animation/keyframing.cc.
References CTX_data_ensure_evaluated_depsgraph(), and insert_key_exec().
Referenced by ANIM_OT_keyframe_insert().
|
static |
Definition at line 526 of file editors/animation/keyframing.cc.
References BLI_assert, CTX_data_scene(), wmOperatorType::exec, free(), EnumPropertyItem::icon, EnumPropertyItem::identifier, MEM_freeN(), EnumPropertyItem::name, OPERATOR_INTERFACE, wmOperator::ptr, RNA_boolean_get(), RNA_enum_set(), RNA_property_enum_items_gettexted(), RNA_struct_find_property(), wmOperator::type, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemS(), uiItemStringO(), and WM_operatortype_name().
Referenced by ANIM_OT_keyframe_insert_menu().
|
static |
Definition at line 172 of file editors/animation/keyframing.cc.
References ANIM_apply_keyingset(), ANIM_keyingset_find_id(), BKE_report(), BKE_reportf(), BKE_scene_frame_get(), CTX_data_edit_object(), CTX_data_scene(), Object::data, wmOperator::flag, G, G_DEBUG, blender::animrig::INSERT, blender::ed::object::mode_set(), NA_ADDED, KeyingSet::name, NC_ANIMATION, ND_KEYFRAME, OB_MODE_EDIT, OB_MODE_OBJECT, OP_IS_INVOKE, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, RPT_WARNING, and WM_event_add_notifier().
Referenced by insert_key_exec(), and keyframe_insert_with_keyingset_exec().
|
static |
Definition at line 232 of file editors/animation/keyframing.cc.
References ELEM, ptr, RNA_property_anim_editable(), IDProperty::subtype, and IDProperty::type.
Referenced by construct_rna_paths().
|
static |
Definition at line 484 of file editors/animation/keyframing.cc.
References ANIM_deselect_keys_in_animation_editors(), CTX_data_scene(), insert_key_with_keyingset(), keyingset_get_from_op_with_error(), OPERATOR_CANCELLED, wmOperatorType::prop, and wmOperator::type.
Referenced by ANIM_OT_keyframe_insert_by_name(), and ANIM_OT_keyframe_insert_menu().
|
static |
Use for insert/delete key-frame.
Definition at line 1509 of file editors/animation/keyframing.cc.
References ANIM_keyingset_get_from_enum_type(), ANIM_keyingset_get_from_idname(), BKE_report(), BKE_reportf(), BLI_assert, MAX_ID_NAME, PROP_ENUM, PROP_STRING, wmOperator::ptr, wmOperator::reports, RNA_property_enum_get(), RNA_property_string_get(), RNA_property_type(), RPT_ERROR, and STREQ.
Referenced by delete_key_exec(), and keyframe_insert_with_keyingset_exec().
|
static |
Polling callback for use with ANIM_*_keyframe() operators This is based on the standard ED_operator_areaactive callback, except that it does special checks for a few space-types too.
Definition at line 156 of file editors/animation/keyframing.cc.
References CTX_data_scene(), CTX_wm_area(), and ELEM.
Referenced by ANIM_OT_keyframe_clear_button(), ANIM_OT_keyframe_delete(), ANIM_OT_keyframe_delete_button(), ANIM_OT_keyframe_delete_by_name(), ANIM_OT_keyframe_insert(), ANIM_OT_keyframe_insert_button(), and ANIM_OT_keyframe_insert_by_name().
Definition at line 1446 of file editors/animation/keyframing.cc.
References AnimData::action, Object::adt, assigned_action_has_keyframe_at(), BKE_nla_tweakedit_remap(), and NLATIME_CONVERT_UNMAP.
Referenced by id_frame_has_keyframe().
| void update_autoflags_fcurve | ( | FCurve * | fcu, |
| bContext * | C, | ||
| ReportList * | reports, | ||
| PointerRNA * | ptr ) |
Lesser Key-framing API call.
Update integer/discrete flags of the FCurve (used when creating/inserting keyframes, but also through RNA when editing an ID prop, see #37103).
Definition at line 82 of file editors/animation/keyframing.cc.
References BKE_report(), BKE_reportf(), PointerRNA::data, FCurve::flag, NA_EDITED, ID::name, NC_ANIMATION, ND_KEYFRAME, PointerRNA::owner_id, ptr, FCurve::rna_path, RNA_path_resolve_property(), RPT_, RPT_ERROR, blender::animrig::update_autoflags_fcurve_direct(), and WM_event_add_notifier().