|
Blender V5.0
|
#include <cfloat>#include <cstddef>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_anim_types.h"#include "DNA_scene_types.h"#include "BLI_listbase.h"#include "BKE_animsys.h"#include "BKE_context.hh"#include "BKE_report.hh"#include "ANIM_keyframing.hh"#include "ANIM_keyingsets.hh"#include "ED_keyframing.hh"#include "ED_screen.hh"#include "UI_interface.hh"#include "UI_interface_layout.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 "anim_intern.hh"Go to the source code of this file.
|
static |
Definition at line 91 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, BKE_keyingset_add(), BLI_listbase_count(), C, CTX_data_scene(), flag, blender::animrig::get_keyframing_flags(), KEYINGSET_ABSOLUTE, Scene::keyingsets, NC_SCENE, ND_KEYINGSET, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ANIM_OT_keying_set_add().
|
static |
Definition at line 173 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, KeyingSet::active_path, BKE_report(), BLI_addtail(), BLI_findlink(), BLI_listbase_count(), C, CTX_data_scene(), KS_Path::flag, KS_Path::groupmode, ID_OB, KS_Path::idtype, Scene::keyingsets, KSP_FLAG_WHOLE_ARRAY, KSP_GROUP_KSNAME, MEM_callocN(), OPERATOR_CANCELLED, OPERATOR_FINISHED, KeyingSet::paths, wmOperator::reports, and RPT_ERROR.
Referenced by ANIM_OT_keying_set_path_add().
|
static |
Definition at line 260 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, KeyingSet::active_path, all(), BKE_keyingset_add(), BKE_keyingset_add_path(), BKE_report(), BKE_reportf(), BLI_findlink(), BLI_listbase_count(), C, CTX_data_scene(), flag, blender::animrig::get_keyframing_flags(), KEYINGSET_ABSOLUTE, Scene::keyingsets, KSP_FLAG_WHOLE_ARRAY, KSP_GROUP_KSNAME, KeyingSet::name, NC_SCENE, ND_KEYINGSET, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, KeyingSet::paths, ptr, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_path_from_ID_to_property(), RNA_property_anim_editable(), RPT_ERROR, RPT_INFO, UI_context_active_but_prop_get(), and WM_event_add_notifier().
Referenced by ANIM_OT_keyingset_button_add().
| const EnumPropertyItem * ANIM_keying_sets_enum_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Dynamically populate an enum of Keying Sets.
Definition at line 658 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, build_keyingset_enum(), C, CTX_data_scene(), rna_enum_dummy_DEFAULT_items, RNA_enum_item_add(), and RNA_enum_item_add_separator().
Referenced by ANIM_OT_keyframe_delete(), ANIM_OT_keyframe_insert(), and ANIM_OT_keyframe_insert_menu().
Check if KeyingSet can be used in the current context.
Definition at line 717 of file editors/animation/keyingsets.cc.
References C, KeyingSet::flag, KEYINGSET_ABSOLUTE, blender::animrig::keyingset_info_find_name(), KeyingSetInfo::poll, and KeyingSet::typeinfo.
Referenced by anim_keyingset_visit_for_search_impl(), and build_keyingset_enum().
Get the keying set from enum values generated in ANIM_keying_sets_enum_itemf.
Type is the Keying Set the user specified to use when calling the operator:
| type |
Definition at line 688 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, BLI_findlink(), builtin_keyingsets, and Scene::keyingsets.
Referenced by insert_key_exec(), and keyingset_get_from_op_with_error().
Definition at line 701 of file editors/animation/keyingsets.cc.
References BLI_findstring(), builtin_keyingsets, Scene::keyingsets, and offsetof.
Referenced by keyingset_get_from_op_with_error().
| void ANIM_keyingset_visit_for_search | ( | const bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const char * | edit_text, | ||
| blender::FunctionRef< void(StringPropertySearchVisitParams)> | visit_fn ) |
Definition at line 636 of file editors/animation/keyingsets.cc.
References anim_keyingset_visit_for_search_impl(), and C.
|
static |
Definition at line 591 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, ANIM_keyingset_context_ok_poll(), builtin_keyingsets, C, CTX_data_scene(), ListBase::first, StringPropertySearchVisitParams::info, Scene::keyingsets, LISTBASE_FOREACH, and StringPropertySearchVisitParams::text.
Referenced by ANIM_keyingset_visit_for_search(), and ANIM_keyingset_visit_for_search_no_poll().
| void ANIM_keyingset_visit_for_search_no_poll | ( | const bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| const char * | edit_text, | ||
| blender::FunctionRef< void(StringPropertySearchVisitParams)> | visit_fn ) |
Definition at line 646 of file editors/animation/keyingsets.cc.
References anim_keyingset_visit_for_search_impl(), and C.
Referenced by ANIM_OT_keyframe_delete_by_name(), and ANIM_OT_keyframe_insert_by_name().
| void ANIM_OT_keying_set_active_set | ( | wmOperatorType * | ot | ) |
Definition at line 532 of file editors/animation/keyingsets.cc.
References ED_operator_areaactive(), keyingset_active_menu_exec(), keyingset_active_menu_invoke(), keyingset_set_active_enum_itemf(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), RNA_def_enum_funcs(), and rna_enum_dummy_DEFAULT_items.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keying_set_add | ( | wmOperatorType * | ot | ) |
Definition at line 112 of file editors/animation/keyingsets.cc.
References add_default_keyingset_exec(), keyingset_poll_default_add(), and ot.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keying_set_path_add | ( | wmOperatorType * | ot | ) |
Definition at line 201 of file editors/animation/keyingsets.cc.
References add_empty_ks_path_exec(), keyingset_poll_active_edit(), and ot.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keying_set_path_remove | ( | wmOperatorType * | ot | ) |
Definition at line 243 of file editors/animation/keyingsets.cc.
References keyingset_poll_activePath_edit(), ot, and remove_active_ks_path_exec().
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keying_set_remove | ( | wmOperatorType * | ot | ) |
Definition at line 159 of file editors/animation/keyingsets.cc.
References keyingset_poll_active_edit(), ot, and remove_active_keyingset_exec().
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyingset_button_add | ( | wmOperatorType * | ot | ) |
Definition at line 333 of file editors/animation/keyingsets.cc.
References add_keyingset_button_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_boolean().
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyingset_button_remove | ( | wmOperatorType * | ot | ) |
Definition at line 406 of file editors/animation/keyingsets.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, and remove_keyingset_button_exec().
Referenced by ED_operatortypes_anim().
Get the index of the Keying Set provided, for the given Scene.
Definition at line 560 of file editors/animation/keyingsets.cc.
References BLI_findindex(), builtin_keyingsets, and Scene::keyingsets.
|
static |
Definition at line 457 of file editors/animation/keyingsets.cc.
References ANIM_keyingset_context_ok_poll(), builtin_keyingsets, C, CTX_data_scene(), EnumPropertyItem::description, KeyingSet::description, ListBase::first, EnumPropertyItem::identifier, KeyingSet::idname, Scene::keyingsets, EnumPropertyItem::name, KeyingSet::name, KeyingSet::next, RNA_enum_item_add(), RNA_enum_item_add_separator(), RNA_enum_item_end(), and EnumPropertyItem::value.
Referenced by ANIM_keying_sets_enum_itemf(), and keyingset_set_active_enum_itemf().
|
static |
Definition at line 443 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, C, CTX_data_scene(), NC_SCENE, ND_KEYINGSET, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), and WM_event_add_notifier().
Referenced by ANIM_OT_keying_set_active_set().
|
static |
Definition at line 427 of file editors/animation/keyingsets.cc.
References C, wmOperatorType::name, uiLayout::op_enum(), OPERATOR_INTERFACE, wmOperator::type, UI_popup_menu_begin(), UI_popup_menu_end(), and UI_popup_menu_layout().
Referenced by ANIM_OT_keying_set_active_set().
|
static |
Definition at line 58 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, C, CTX_data_scene(), ListBase::first, and Scene::keyingsets.
Referenced by ANIM_OT_keying_set_path_add(), and ANIM_OT_keying_set_remove().
|
static |
Definition at line 71 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, KeyingSet::active_path, BLI_findlink(), C, CTX_data_scene(), ListBase::first, Scene::keyingsets, and KeyingSet::paths.
Referenced by ANIM_OT_keying_set_path_remove().
|
static |
Definition at line 51 of file editors/animation/keyingsets.cc.
References C, and CTX_data_scene().
Referenced by ANIM_OT_keying_set_add().
|
static |
Definition at line 502 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, build_keyingset_enum(), C, CTX_data_scene(), rna_enum_dummy_DEFAULT_items, RNA_enum_item_add(), and RNA_enum_item_add_separator().
Referenced by ANIM_OT_keying_set_active_set().
|
static |
Definition at line 126 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, BKE_keyingset_free_paths(), BKE_report(), BLI_findlink(), BLI_freelinkN(), C, CTX_data_scene(), Scene::keyingsets, NC_SCENE, ND_KEYINGSET, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by ANIM_OT_keying_set_remove().
|
static |
Definition at line 215 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, KeyingSet::active_path, BKE_keyingset_free_path(), BKE_report(), BLI_findlink(), C, CTX_data_scene(), Scene::keyingsets, OPERATOR_CANCELLED, OPERATOR_FINISHED, KeyingSet::paths, wmOperator::reports, and RPT_ERROR.
Referenced by ANIM_OT_keying_set_path_remove().
|
static |
Definition at line 353 of file editors/animation/keyingsets.cc.
References Scene::active_keyingset, BKE_keyingset_find_path(), BKE_keyingset_free_path(), BKE_report(), BLI_findlink(), C, CTX_data_scene(), Scene::keyingsets, KSP_GROUP_KSNAME, KeyingSet::name, NC_SCENE, ND_KEYINGSET, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, ptr, wmOperator::reports, RNA_path_from_ID_to_property(), RPT_ERROR, RPT_INFO, UI_context_active_but_prop_get(), and WM_event_add_notifier().
Referenced by ANIM_OT_keyingset_button_remove().