11#include <fmt/format.h>
73#include "RNA_prototypes.hh"
93 int old_flag = fcu->
flag;
96 BKE_report(reports,
RPT_ERROR,
"No RNA pointer available to retrieve values for this F-curve");
107 "Could not update flags for this F-curve, as RNA path is invalid for the given ID "
108 "(ID = %s, path = %s)",
110 fcu->rna_path().c_str());
117 if (old_flag != fcu->
flag) {
125 BLI_assert_msg(num_keys_to_add >= 0,
"cannot remove keyframes with this function");
127 if (num_keys_to_add == 0) {
135 fcu->
totvert += num_keys_to_add;
138 while (num_keys_to_add--) {
170 if (
ELEM(
nullptr, area, scene)) {
186 for (
Strip *strip : strips) {
196 switch (context_mode) {
225 bool ob_edit_mode =
false;
243 "Keying set '%s' - successfully added %d keyframes",
254 if (num_channels < 0) {
259 if (num_channels > 0) {
267 if (num_channels > 0) {
270 "Successfully added %d keyframes for keying set '%s'",
289 paths.
append({
"transform.offset_x"});
290 paths.
append({
"transform.offset_y"});
293 paths.
append({
"transform.rotation"});
296 paths.
append({
"transform.scale_x"});
297 paths.
append({
"transform.scale_y"});
306 if (!rotation_mode.has_value()) {
313 paths.
append({
"location"});
316 switch (rotation_mode.value()) {
318 paths.
append({
"rotation_quaternion"});
321 paths.
append({
"rotation_axis_angle"});
329 paths.
append({
"rotation_euler"});
338 paths.
append({
"rotation_mode"});
351 if (!found_selection) {
375 ID *selected_id = id_ptr.owner_id;
376 ids.
add(selected_id);
380 "Could not insert keyframe, as this type does not support animation data (ID = "
445 ot->
name =
"Insert Keyframe";
446 ot->
idname =
"ANIM_OT_keyframe_insert";
448 "Insert keyframes on the current frame using either the active keying set, or the user "
449 "preferences if no keying set is active";
487 ot->
name =
"Insert Keyframe (by name)";
488 ot->
idname =
"ANIM_OT_keyframe_insert_by_name";
489 ot->
description =
"Alternate access to 'Insert Keyframe' for keymaps to use";
500 ot->
srna,
"type",
nullptr,
MAX_ID_NAME - 2,
"Keying Set",
"The Keying Set to use");
551 for (
int i = 0; i < totitem; i++) {
567 MEM_delete(item_array);
570 popup_menu_end(
C, pup);
580 ot->
name =
"Insert Keyframe Menu";
581 ot->
idname =
"ANIM_OT_keyframe_insert_menu";
583 "Insert Keyframes for specified Keying Set, with menu of available Keying Sets if undefined";
642 printf(
"KeyingSet '%s' - Successfully removed %d Keyframes\n", ks->
name, num_channels);
646 if (num_channels < 0) {
651 if (num_channels > 0) {
661 if (num_channels > 0) {
664 "Successfully removed %d keyframes for keying set '%s'",
680 ot->
name =
"Delete Keying-Set Keyframe";
681 ot->
idname =
"ANIM_OT_keyframe_delete";
683 "Delete keyframes on the current frame for all properties in the specified Keying Set";
705 ot->
name =
"Delete Keying-Set Keyframe (by name)";
706 ot->
idname =
"ANIM_OT_keyframe_delete_by_name";
707 ot->
description =
"Alternate access to 'Delete Keyframe' for keymaps to use";
718 ot->
srna,
"type",
nullptr,
MAX_ID_NAME - 2,
"Keying Set",
"The Keying Set to use");
734 bool can_delete =
false;
740 char bone_name[
sizeof(pchan->
name)];
744 if ((pchan) && (pchan->bone_get(*ob))) {
765 bool changed =
false;
769 if ((ob->adt) && (ob->adt->action)) {
773 Action &action = dna_action->wrap();
776 if (can_delete_fcurve(&fcurve, ob)) {
777 fcurves_to_delete.append(&fcurve);
780 for (
FCurve *fcurve : fcurves_to_delete) {
807 IFACE_(
"Remove animation from selected objects?"),
819 ot->
name =
"Remove Animation";
820 ot->
description =
"Remove all keyframe animation for selected objects";
821 ot->
idname =
"ANIM_OT_keyframe_clear_v3d";
849 return selected_strips_rna_paths;
864 return std::strncmp(fcurve.rna_path().c_str(), strip_path.c_str(), strip_path.length()) == 0;
876 bool changed =
false;
885 if (selected_strips_rna_paths.
is_empty()) {
898 Action &action = dna_action->wrap();
901 for (const std::string &strip_path : selected_strips_rna_paths) {
902 if (fcurve_belongs_to_strip(fcurve, strip_path)) {
903 fcurves_to_delete.append(&fcurve);
908 for (
FCurve *fcurve : fcurves_to_delete) {
917 if (scene->adt->action) {
934 IFACE_(
"Remove animation from selected strips?"),
945 ot->
name =
"Remove Animation";
946 ot->
description =
"Remove all keyframe animation for selected strips";
947 ot->
idname =
"ANIM_OT_keyframe_clear_vse";
972 "Not deleting keyframe for locked F-Curve '%s', object '%s'",
973 fcu->rna_path().c_str(),
988 char bone_name[
sizeof(pchan->
name)];
990 fcu->rna_path().c_str(),
"pose.bones[", bone_name,
sizeof(bone_name)))
997 if ((pchan) && (pchan->bone_get(*ob))) {
1016 "Not deleting keyframe for locked F-Curve '%s', scene '%s'",
1017 fcu->rna_path().c_str(),
1041 if (selected_strips_rna_paths.
is_empty()) {
1054 Action &action = act->wrap();
1062 std::string changed_strip;
1063 for (const std::string &strip_path : selected_strips_rna_paths) {
1064 if (fcurve_belongs_to_strip(fcurve, strip_path)) {
1065 changed_strip = strip_path;
1073 modified_fcurves.
append(&fcurve);
1074 modified_strips.
add(changed_strip);
1078 for (
FCurve *fcurve : modified_fcurves) {
1084 if (scene->adt->action) {
1090 if (!modified_strips.is_empty()) {
1100 if (modified_strips.is_empty()) {
1101 const std::string msg = fmt::format(
1102 fmt::runtime(
RPT_(
"No keyframes removed from {} strip(s)")),
1103 selected_strips_rna_paths.size());
1108 const std::string msg = fmt::format(
1109 fmt::runtime(
RPT_(
"{} strip(s) successfully had {} keyframes removed")),
1110 modified_strips.size(),
1111 modified_fcurves.size());
1123 if (ks ==
nullptr) {
1137 IFACE_(
"Delete keyframes from selected strips?"),
1149 ot->
name =
"Delete Keyframe";
1150 ot->
description =
"Remove keyframes on current frame for selected strips";
1151 ot->
idname =
"ANIM_OT_keyframe_delete_vse";
1179 int selected_objects_len = 0;
1180 int selected_objects_success_len = 0;
1181 int success_multi = 0;
1188 selected_objects_len += 1;
1191 if ((ob->adt) && (ob->adt->action)) {
1196 Action &action = act->wrap();
1199 if (!can_delete_key(&fcurve, ob, op->reports)) {
1203 modified_fcurves.
append(&fcurve);
1207 success += modified_fcurves.size();
1208 for (
FCurve *fcurve : modified_fcurves) {
1214 if (ob->adt->action) {
1223 selected_objects_success_len += 1;
1224 success_multi += success;
1231 if (selected_objects_success_len) {
1238 if (selected_objects_success_len) {
1241 "%d object(s) successfully had %d keyframes removed",
1242 selected_objects_success_len,
1247 op->reports,
RPT_ERROR,
"No keyframes removed from %d object(s)", selected_objects_len);
1258 if (ks ==
nullptr) {
1272 IFACE_(
"Delete keyframes from selected objects?"),
1284 ot->
name =
"Delete Keyframe";
1285 ot->
description =
"Remove keyframes on current frame for selected objects and bones";
1286 ot->
idname =
"ANIM_OT_keyframe_delete_v3d";
1319 bool changed =
false;
1332 if (ptr.
type == RNA_NlaStrip) {
1358 "This property cannot be animated as it will not get updated correctly");
1364 bool driven, special;
1367 C, &ptr, prop,
index,
nullptr,
nullptr, &driven, &special);
1369 if (fcu && driven) {
1371 &anim_eval_context, &ptr, prop, fcu);
1396 const std::optional<int> array_index = (
all ||
index < 0) ? std::nullopt :
1397 std::optional(
index);
1402 {{*path, {}, array_index}},
1412 "Failed to resolve path to property, "
1413 "try manually specifying this using a Keying Set instead");
1421 "\"%s\" property cannot be animated",
1427 "Button does not appear to have any property information attached (ptr.data = "
1430 static_cast<void *
>(prop));
1437 if (adt->
action !=
nullptr) {
1455 ot->
name =
"Insert Keyframe (Buttons)";
1456 ot->
idname =
"ANIM_OT_keyframe_insert_button";
1457 ot->
description =
"Insert a keyframe for current UI-active property";
1467 RNA_def_boolean(ot->
srna,
"all",
true,
"All",
"Insert a keyframe for all element of the array");
1486 bool changed =
false;
1510 "Not deleting keyframe for locked F-Curve for NLA Strip influence on %s - %s '%s'",
1546 printf(
"Button Delete-Key: no path to property\n");
1551 printf(
"ptr.data = %p, prop = %p\n", ptr.
data,
static_cast<void *
>(prop));
1568 ot->
name =
"Delete Keyframe (Buttons)";
1569 ot->
idname =
"ANIM_OT_keyframe_delete_button";
1570 ot->
description =
"Delete current keyframe of current UI-active property";
1580 RNA_def_boolean(ot->
srna,
"all",
true,
"All",
"Delete keyframes from all elements of the array");
1594 bool changed =
false;
1614 printf(
"Button Clear-Key: no path to property\n");
1618 printf(
"ptr.data = %p, prop = %p\n", ptr.
data,
static_cast<void *
>(prop));
1635 ot->
name =
"Clear Keyframe (Buttons)";
1636 ot->
idname =
"ANIM_OT_keyframe_clear_button";
1637 ot->
description =
"Clear all keyframes on the currently active property";
1647 RNA_def_boolean(ot->
srna,
"all",
true,
"All",
"Clear keyframes from all elements of the array");
1663 anim_rna.
prop = prop;
1683 if (ks ==
nullptr) {
1691 if (
STREQ(type_id,
"__ACTIVE__")) {
1698 if (ks ==
nullptr) {
Functions and classes to work with Actions.
Functionality to iterate an Action in various ways.
Functions to work with AnimData.
Functions to deal with Armatures.
C++ functions to deal with Armature collections (i.e. the successor of bone layers).
Functions to work with drivers.
Functions to modify FCurves.
Functions to insert, delete or modify keyframes.
Functionality to interact with keying sets.
Helper functions for animation to interact with the RNA system.
Blender kernel action and pose functionality.
#define CTX_DATA_BEGIN(C, Type, instance, member)
#define CTX_IFACE_(context, msgid)
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
ID and Library types, which are fundamental for SDNA.
Read Blender memory allocation and freeing.
#define BLI_assert_msg(a, msg)
#define MEM_realloc_zeroed(vmemh, len)
void append(const T &value)
void extend(Span< T > array)
Span< T > as_span() const
void merge(const CombinedKeyingResult &other)
int get_count(const SingleKeyingResult result) const
void generate_reports(ReportList *reports, eReportType report_level=RPT_ERROR)
static constexpr slot_handle_t unassigned
bool all(VecOp< bool, D >) RET
bool action_fcurve_remove(Action &action, FCurve &fcu)
std::optional< StringRefNull > default_channel_group_for_path(const PointerRNA *animated_struct, StringRef prop_rna_path)
void update_autoflags_fcurve_direct(FCurve *fcu, PropertyType prop_type)
KeyingSet * scene_get_active_keyingset(const Scene *scene)
Vector< RNAPath > get_keyable_id_property_paths(const PointerRNA &ptr)
Vector< float > get_rna_values(PointerRNA *ptr, PropertyRNA *prop)
bool bone_is_selected(const bArmature *armature, const Bone *bone)
int clear_keyframe(Main *bmain, ReportList *reports, ID *id, const RNAPath &rna_path)
int delete_keyframe(Main *bmain, ReportList *reports, ID *id, const RNAPath &rna_path, float cfra)
Main Delete Key-Framing API call.
bool fcurve_delete_keyframe_at_time(FCurve *fcurve, float time)
std::optional< eRotationModes > get_rotation_mode_from_rna_pointer(const PointerRNA &ptr)
bool keyingset_find_id(KeyingSet *keyingset, ID *id)
SingleKeyingResult insert_keyframe_direct(PointerRNA &ptr, PropertyRNA &prop, FCurve &fcu, float fcurve_frame, eBezTriple_KeyframeType keytype, eInsertKeyFlags flag)
Secondary Insert Key-framing API call.
int apply_keyingset(bContext *C, Vector< PointerRNA > *sources, KeyingSet *keyingset, ModifyKeyMode mode, float cfra)
void foreach_fcurve_in_action_slot_editable(Action &action, slot_handle_t handle, FunctionRef< void(FCurve &fcurve)> callback)
void generate_single_keying_result_report(const SingleKeyingResult result, ReportList *reports)
eInsertKeyFlags get_keyframing_flags(Scene *scene)
float evaluate_driver_from_rna_pointer(const AnimationEvalContext *anim_eval_context, PointerRNA *ptr, PropertyRNA *prop, const FCurve *fcu)
CombinedKeyingResult insert_keyframes(Main *bmain, PointerRNA *struct_pointer, std::optional< StringRefNull > channel_group, const Span< RNAPath > rna_paths, std::optional< float > scene_frame, const AnimationEvalContext &anim_eval_context, eBezTriple_KeyframeType key_type, eInsertKeyFlags insert_key_flags)
Main key-frame insertion API.
void free(Subdiv *subdiv)
Scene * scene_or_sequencer_scene_from_context(const bContext &C)
bool mode_set(bContext *C, eObjectMode mode)
VectorSet< Strip * > selected_strips_from_context(bContext *C)
void relations_invalidate_cache(Scene *scene, Strip *strip)
PopupMenu * popup_menu_begin(bContext *C, const char *title, int icon) ATTR_NONNULL()
void context_update_anim_flag(const bContext *C)
Button * context_active_but_prop_get(const bContext *C, PointerRNA *r_ptr, PropertyRNA **r_prop, int *r_index)
static wmOperatorStatus insert_key(bContext *C, wmOperator *op)
const char * BKE_idtype_idcode_to_name(short idcode)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
const EnumPropertyItem * ANIM_keying_sets_enum_itemf(bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
ScrArea * CTX_wm_area(const bContext *C)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void ED_keyframes_add(FCurve *fcu, int num_keys_to_add)
MINLINE int compare_ff_relative(float a, float b, float max_diff, int max_ulps)
static wmOperatorStatus delete_key_v3d_exec(bContext *C, wmOperator *op)
void ANIM_keyingset_visit_for_search_no_poll(const bContext *C, PointerRNA *, PropertyRNA *, const char *, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
static Vector< RNAPath > construct_rna_paths(PointerRNA *ptr)
float BKE_nla_tweakedit_remap(AnimData *adt, float cframe, eNlaTime_ConvertModes mode)
Scene * CTX_data_sequencer_scene(const bContext *C)
static wmOperatorStatus delete_key_vse_exec(bContext *C, wmOperator *op)
void ANIM_OT_keyframe_insert_by_name(wmOperatorType *ot)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
static wmOperatorStatus delete_key_using_keying_set(bContext *C, wmOperator *op, KeyingSet *ks)
static wmOperatorStatus clear_anim_v3d_exec(bContext *C, wmOperator *)
bool RNA_struct_is_a(const StructRNA *type, const StructRNA *srna)
bool bool BLI_str_quoted_substr(const char *__restrict str, const char *__restrict prefix, char *result, size_t result_maxncpy)
static wmOperatorStatus insert_key_with_keyingset(bContext *C, wmOperator *op, KeyingSet *ks)
std::string WM_operatortype_name(wmOperatorType *ot, PointerRNA *properties)
float calculate_fcurve(PathResolvedRNA *anim_rna, FCurve *fcu, const AnimationEvalContext *anim_eval_context)
void ANIM_OT_keyframe_delete_by_name(wmOperatorType *ot)
PointerRNA RNA_id_pointer_create(ID *id)
std::optional< std::string > RNA_path_from_ID_to_property(const PointerRNA *ptr, PropertyRNA *prop)
Depsgraph * CTX_data_depsgraph_pointer(const bContext *C)
const char * RNA_property_identifier(const PropertyRNA *prop)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
int RNA_property_enum_get(PointerRNA *ptr, PropertyRNA *prop)
static wmOperatorStatus clear_key_button_exec(bContext *C, wmOperator *op)
bool fcurve_is_changed(PointerRNA ptr, PropertyRNA *prop, FCurve *fcu, const AnimationEvalContext *anim_eval_context)
Lesser Keyframe Checking API call.
bool ED_operator_areaactive(bContext *C)
std::optional< std::string > RNA_path_from_ID_to_struct(const PointerRNA *ptr)
void BKE_fcurve_delete_key(FCurve *fcu, int index)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
static wmOperatorStatus insert_key_button_exec(bContext *C, wmOperator *op)
void update_autoflags_fcurve(FCurve *fcu, bContext *C, ReportList *reports, PointerRNA *ptr)
Lesser Key-framing API call.
std::string RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop)
void ANIM_OT_keyframe_delete_button(wmOperatorType *ot)
@ USER_ANIM_KEY_CHANNEL_CUSTOM_PROPERTIES
@ USER_ANIM_KEY_CHANNEL_ROTATION
@ USER_ANIM_KEY_CHANNEL_ROTATION_MODE
@ USER_ANIM_KEY_CHANNEL_SCALE
@ USER_ANIM_KEY_CHANNEL_LOCATION
KeyingSet * ANIM_keyingset_get_from_enum_type(Scene *scene, int type)
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
enum eContextObjectMode CTX_data_mode_enum(const bContext *C)
static bool can_delete_key(FCurve *fcu, Object *ob, ReportList *reports)
static Vector< std::string > get_selected_strips_rna_paths(Vector< PointerRNA > &selection)
bool id_can_have_animdata(const ID *id)
KeyingSet * ANIM_keyingset_get_from_idname(Scene *scene, const char *idname)
static bool can_delete_scene_key(FCurve *fcu, Scene *scene, wmOperator *op)
static wmOperatorStatus insert_key_invoke(bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus delete_key_v3d_without_keying_set(bContext *C, wmOperator *op)
static wmOperatorStatus insert_key_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
SpaceSeq * CTX_wm_space_seq(const bContext *C)
AnimationEvalContext BKE_animsys_eval_context_construct(Depsgraph *depsgraph, float eval_time) ATTR_WARN_UNUSED_RESULT
static wmOperatorStatus delete_key_vse_without_keying_set(bContext *C, wmOperator *op)
PropertyType RNA_property_type(PropertyRNA *prop)
AnimData * BKE_animdata_from_id(const ID *id)
void WM_operator_properties_confirm_or_exec(wmOperatorType *ot)
bool BKE_nlastrip_has_curves_for_property(const PointerRNA *ptr, const PropertyRNA *prop)
bool BKE_fcurve_is_protected(const FCurve &fcu)
static wmOperatorStatus delete_key_button_exec(bContext *C, wmOperator *op)
bool ED_operator_sequencer_scene_editable(bContext *C)
bool RNA_property_anim_editable(const PointerRNA *ptr, PropertyRNA *prop_orig)
@ PROP_STRING_SEARCH_SUGGESTION
void BKE_fcurve_handles_recalc(FCurve &fcu)
void DEG_id_tag_update(ID *id, unsigned int flags)
float BKE_scene_frame_get(const Scene *scene)
void BKE_report(ReportList *reports, eReportType type, const char *message)
void RNA_def_property_string_search_func_runtime(PropertyRNA *prop, StringPropertySearchFunc search_fn, const eStringPropertySearchFlag search_flag)
void ANIM_deselect_keys_in_animation_editors(bContext *C)
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C, bool rna_write_check=false)
static wmOperatorStatus insert_key_exec(bContext *C, wmOperator *op)
Object * CTX_data_edit_object(const bContext *C)
void ANIM_OT_keyframe_delete_v3d(wmOperatorType *ot)
static bool modify_key_op_poll(bContext *C)
void ANIM_OT_keyframe_delete_vse(wmOperatorType *ot)
static wmOperatorStatus delete_key_vse_invoke(bContext *C, wmOperator *op, const wmEvent *)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
static bool get_selection(bContext *C, Vector< PointerRNA > *r_selection)
const EnumPropertyItem rna_enum_dummy_DEFAULT_items[]
void RNA_property_enum_items_gettexted(bContext *C, PointerRNA *ptr, PropertyRNA *prop, const EnumPropertyItem **r_item, int *r_totitem, bool *r_free)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
wmOperatorStatus WM_operator_confirm_ex(bContext *C, wmOperator *op, const char *title, const char *message, const char *confirm_text, ui::AlertIcon icon, bool cancel_default)
bool CTX_data_selected_pose_bones(const bContext *C, Vector< PointerRNA > *list)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
static bool can_delete_fcurve(FCurve *fcu, Object *ob)
static wmOperatorStatus clear_anim_vse_invoke(bContext *C, wmOperator *op, const wmEvent *)
void ANIM_OT_keyframe_insert_menu(wmOperatorType *ot)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void ANIM_OT_keyframe_clear_v3d(wmOperatorType *ot)
Main * CTX_data_main(const bContext *C)
static void invalidate_strip_caches(Vector< PointerRNA > selection, Scene *scene)
void ANIM_OT_keyframe_clear_vse(wmOperatorType *ot)
@ ID_RECALC_ANIMATION_NO_FLUSH
static wmOperatorStatus clear_anim_vse_exec(bContext *C, wmOperator *op)
void ANIM_OT_keyframe_insert(wmOperatorType *ot)
static wmOperatorStatus keyframe_insert_with_keyingset_exec(bContext *C, wmOperator *op)
Scene * CTX_data_scene(const bContext *C)
static wmOperatorStatus delete_key_v3d_invoke(bContext *C, wmOperator *op, const wmEvent *)
static bool fcurve_belongs_to_strip(const FCurve &fcurve, const std::string &strip_path)
int BKE_fcurve_bezt_binarysearch_index(const BezTriple array[], float frame, int arraylen, bool *r_replace)
bool BKE_fcurve_is_empty(const FCurve *fcu)
FCurve * BKE_fcurve_find_by_rna_context_ui(bContext *C, const PointerRNA *ptr, PropertyRNA *prop, int rnaindex, AnimData **r_animdata, bAction **r_action, bool *r_driven, bool *r_special)
bool CTX_data_selected_objects(const bContext *C, Vector< PointerRNA > *list)
void ANIM_OT_keyframe_insert_button(wmOperatorType *ot)
FCurve * BKE_fcurve_find(ListBaseT< FCurve > *list, const char rna_path[], int array_index)
static KeyingSet * keyingset_get_from_op_with_error(wmOperator *op, PropertyRNA *prop, Scene *scene)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
static wmOperatorStatus clear_anim_v3d_invoke(bContext *C, wmOperator *op, const wmEvent *)
void ANIM_OT_keyframe_delete(wmOperatorType *ot)
bool BKE_id_is_editable(const Main *bmain, const ID *id)
bool RNA_path_resolve_property(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)
bPoseChannel * BKE_pose_channel_find_name(const bPose *pose, const char *name)
void ANIM_OT_keyframe_clear_button(wmOperatorType *ot)
static wmOperatorStatus delete_key_exec(bContext *C, wmOperator *op)
eBezTriple_Interpolation ipo
ListBaseT< FCurve > fcurves
bool has_owner_id() const
struct ToolSettings * toolsettings
PointerRNA op(wmOperatorType *ot, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports
struct wmOperatorType * type