|
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_scene_types.h"#include "DNA_object_types.h"#include "BKE_main.h"#include "BKE_animsys.h"#include "BKE_context.h"#include "BKE_depsgraph.h"#include "BKE_report.h"#include "ED_keyframing.h"#include "ED_screen.h"#include "UI_interface.h"#include "UI_resources.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.
Definition in file keyingsets.c.
| typedef struct tRKS_DSource tRKS_DSource |
| static int add_default_keyingset_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 118 of file keyingsets.c.
References Scene::active_keyingset, ANIM_get_keyframing_flags(), BKE_keyingset_add(), BLI_countlist(), CTX_data_scene(), KEYINGSET_ABSOLUTE, Scene::keyingsets, NC_SCENE, ND_KEYINGSET, NULL, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by ANIM_OT_keying_set_add().
| static int add_empty_ks_path_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 203 of file keyingsets.c.
References Scene::active_keyingset, KeyingSet::active_path, BKE_report(), BLI_addtail(), BLI_countlist(), BLI_findlink(), CTX_data_scene(), KS_Path::groupmode, ID_OB, KS_Path::idtype, Scene::keyingsets, 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 int add_keyingset_button_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 291 of file keyingsets.c.
References Scene::active_keyingset, KeyingSet::active_path, ANIM_get_keyframing_flags(), BKE_keyingset_add(), BKE_keyingset_add_path(), BKE_report(), BLI_countlist(), BLI_findlink(), CTX_data_main(), CTX_data_scene(), DAG_ids_flush_update(), PointerRNA::data, PointerRNA::id, INSERTKEY_XYZ2RGB, IS_AUTOKEY_FLAG, KEYINGSET_ABSOLUTE, Scene::keyingsets, KSP_FLAG_WHOLE_ARRAY, KSP_GROUP_KSNAME, MEM_freeN(), NC_SCENE, ND_KEYINGSET, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, KeyingSet::paths, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_path_from_ID_to_property(), RNA_property_animateable(), RPT_ERROR, uiContextActiveProperty(), and WM_event_add_notifier().
Referenced by ANIM_OT_keyingset_button_add().
| int ANIM_apply_keyingset | ( | bContext * | C, |
| ListBase * | dsources, | ||
| bAction * | act, | ||
| KeyingSet * | ks, | ||
| short | mode, | ||
| float | cfra | ||
| ) |
Definition at line 883 of file keyingsets.c.
References ANIM_get_keyframing_flags(), ANIM_keyingset_info_find_named(), KS_Path::array_index, BKE_keyingset_free(), BKE_reportf(), CTX_data_scene(), CTX_wm_reports(), delete_keyframe(), ListBase::first, KS_Path::flag, KeyingSet::flag, KS_Path::group, KS_Path::groupmode, GS, i, KS_Path::id, ID_OB, insert_keyframe(), KeyingSetInfo::iter, KS_Path::keyingflag, KeyingSet::keyingflag, KEYINGSET_ABSOLUTE, KSP_FLAG_WHOLE_ARRAY, KSP_GROUP_KSNAME, KSP_GROUP_NONE, MODIFYKEY_INVALID_CONTEXT, MODIFYKEY_MISSING_TYPEINFO, MODIFYKEY_MODE_DELETE, MODIFYKEY_MODE_INSERT, NA_EDITED, ID::name, KeyingSet::name, NC_ANIMATION, ND_KEYFRAME, KS_Path::next, NULL, OB_RECALC_DATA, OB_RECALC_OB, OB_RECALC_TIME, KeyingSet::paths, KeyingSetInfo::poll, tRKS_DSource::ptr, Object::recalc, RKS_ITER_overrides_list(), RNA_id_pointer_create(), KS_Path::rna_path, RNA_path_resolve(), RNA_property_array_length(), RPT_WARNING, KeyingSet::typeinfo, and WM_main_add_notifier().
Referenced by autokeyframe_ob_cb_func(), autokeyframe_pose_cb_func(), delete_key_exec(), insert_key_exec(), move_camera(), object_clear_transform_generic_exec(), pose_clear_transform_generic_exec(), pose_flip_quats_exec(), pose_paste_exec(), poseAnim_mapping_autoKeyframe(), poselib_add_exec(), and poselib_keytag_pose().
Definition at line 537 of file keyingsets.c.
References ListBase::first, KeyingSet::name, KeyingSet::next, and NULL.
Referenced by ANIM_get_keyingset_for_autokeying(), autokeyframe_ob_cb_func(), autokeyframe_pose_cb_func(), move_camera(), pose_flip_quats_exec(), and poselib_add_exec().
Definition at line 682 of file keyingsets.c.
References Scene::active_keyingset, ANIM_builtin_keyingset_get_named(), ANIM_scene_get_active_keyingset(), IS_AUTOKEY_FLAG, and NULL.
Referenced by object_clear_transform_generic_exec(), pose_clear_transform_generic_exec(), pose_paste_exec(), poseAnim_mapping_autoKeyframe(), and poselib_keytag_pose().
| EnumPropertyItem* ANIM_keying_sets_enum_itemf | ( | bContext * | C, |
| PointerRNA * | UNUSEDptr, | ||
| PropertyRNA * | UNUSEDprop, | ||
| int * | free | ||
| ) |
Definition at line 699 of file keyingsets.c.
References Scene::active_keyingset, ANIM_keyingset_context_ok_poll(), CTX_data_scene(), DummyRNA_DEFAULT_items, ListBase::first, i, EnumPropertyItem::identifier, Scene::keyingsets, KeyingSet::name, KeyingSet::next, NULL, RNA_enum_item_add(), RNA_enum_item_add_separator(), and RNA_enum_item_end().
Referenced by ANIM_OT_keyframe_delete(), ANIM_OT_keyframe_insert(), and ANIM_OT_keyframe_insert_menu().
| void ANIM_keying_sets_menu_setup | ( | bContext * | C, |
| const char | title[], | ||
| const char | op_name[] | ||
| ) |
Definition at line 760 of file keyingsets.c.
References Scene::active_keyingset, ANIM_keyingset_context_ok_poll(), CTX_data_scene(), ListBase::first, i, Scene::keyingsets, KeyingSet::name, KeyingSet::next, uiItemEnumO_value(), uiItemIntO(), uiItemS(), uiPupMenuBegin(), uiPupMenuEnd(), and uiPupMenuLayout().
Referenced by insert_key_menu_invoke(), and keyingset_active_menu_invoke().
Definition at line 809 of file keyingsets.c.
References ANIM_keyingset_info_find_named(), KeyingSet::flag, KEYINGSET_ABSOLUTE, NULL, KeyingSetInfo::poll, and KeyingSet::typeinfo.
Referenced by ANIM_keying_sets_enum_itemf(), and ANIM_keying_sets_menu_setup().
| KeyingSetInfo* ANIM_keyingset_info_find_named | ( | const char | name[] | ) |
Definition at line 526 of file keyingsets.c.
References BLI_findstring(), and NULL.
Referenced by ANIM_apply_keyingset(), and ANIM_keyingset_context_ok_poll().
| void ANIM_keyingset_info_register | ( | KeyingSetInfo * | ksi | ) |
Definition at line 564 of file keyingsets.c.
References BKE_keyingset_add(), BLI_addtail(), KeyingSetInfo::idname, KeyingSetInfo::keyingflag, KeyingSetInfo::name, and KeyingSet::typeinfo.
| void ANIM_keyingset_info_unregister | ( | Main * | bmain, |
| KeyingSetInfo * | ksi | ||
| ) |
Definition at line 581 of file keyingsets.c.
References BKE_keyingset_free(), BLI_freelinkN(), BLI_remlink(), BLI_remlink_safe(), ListBase::first, Scene::id, KeyingSetInfo::idname, Scene::keyingsets, MEM_freeN(), ID::next, KeyingSet::next, Main::scene, and KeyingSet::typeinfo.
| void ANIM_keyingset_infos_exit | ( | void | ) |
Definition at line 610 of file keyingsets.c.
References BKE_keyingsets_free(), BLI_freelinkN(), ExtensionRNA::data, KeyingSetInfo::ext, ListBase::first, ExtensionRNA::free, next, and KeyingSetInfo::next.
Referenced by WM_exit().
| void ANIM_OT_keying_set_active_set | ( | wmOperatorType * | ot | ) |
Definition at line 494 of file keyingsets.c.
References ED_operator_areaactive(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, keyingset_active_menu_exec(), keyingset_active_menu_invoke(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keying_set_add | ( | wmOperatorType * | ot | ) |
Definition at line 142 of file keyingsets.c.
References add_default_keyingset_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, keyingset_poll_default_add(), wmOperatorType::name, and wmOperatorType::poll.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keying_set_path_add | ( | wmOperatorType * | ot | ) |
Definition at line 231 of file keyingsets.c.
References add_empty_ks_path_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, keyingset_poll_active_edit(), wmOperatorType::name, and wmOperatorType::poll.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keying_set_path_remove | ( | wmOperatorType * | ot | ) |
Definition at line 274 of file keyingsets.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, keyingset_poll_activePath_edit(), wmOperatorType::name, wmOperatorType::poll, and remove_active_ks_path_exec().
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keying_set_remove | ( | wmOperatorType * | ot | ) |
Definition at line 189 of file keyingsets.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, keyingset_poll_active_edit(), wmOperatorType::name, wmOperatorType::poll, and remove_active_keyingset_exec().
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyingset_button_add | ( | wmOperatorType * | ot | ) |
Definition at line 372 of file keyingsets.c.
References add_keyingset_button_exec(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by ED_operatortypes_anim().
| void ANIM_OT_keyingset_button_remove | ( | wmOperatorType * | ot | ) |
Definition at line 451 of file keyingsets.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and remove_keyingset_button_exec().
Referenced by ED_operatortypes_anim().
| void ANIM_relative_keyingset_add_source | ( | ListBase * | dsources, |
| ID * | id, | ||
| StructRNA * | srna, | ||
| void * | data | ||
| ) |
Definition at line 853 of file keyingsets.c.
References BLI_addtail(), ELEM, MEM_callocN(), NULL, tRKS_DSource::ptr, RNA_id_pointer_create(), and RNA_pointer_create().
Referenced by autokeyframe_ob_cb_func(), autokeyframe_pose_cb_func(), move_camera(), object_clear_transform_generic_exec(), pose_flip_quats_exec(), pose_paste_exec(), poseAnim_mapping_autoKeyframe(), and poselib_keytag_pose().
Definition at line 634 of file keyingsets.c.
References Scene::active_keyingset, BLI_findlink(), Scene::keyingsets, and NULL.
Referenced by ANIM_get_keyingset_for_autokeying(), autokeyframe_ob_cb_func(), and autokeyframe_pose_cb_func().
Definition at line 652 of file keyingsets.c.
References BLI_findindex(), Scene::keyingsets, and NULL.
| static int keyingset_active_menu_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 477 of file keyingsets.c.
References Scene::active_keyingset, CTX_data_scene(), NC_SCENE, ND_KEYINGSET, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by ANIM_OT_keying_set_active_set().
| static int keyingset_active_menu_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 470 of file keyingsets.c.
References ANIM_keying_sets_menu_setup(), wmOperatorType::name, OPERATOR_CANCELLED, and wmOperator::type.
Referenced by ANIM_OT_keying_set_active_set().
| static int keyingset_poll_active_edit | ( | bContext * | C | ) | [static] |
Definition at line 87 of file keyingsets.c.
References Scene::active_keyingset, CTX_data_scene(), ListBase::first, Scene::keyingsets, and NULL.
Referenced by ANIM_OT_keying_set_path_add(), and ANIM_OT_keying_set_remove().
| static int keyingset_poll_activePath_edit | ( | bContext * | C | ) | [static] |
Definition at line 99 of file keyingsets.c.
References Scene::active_keyingset, KeyingSet::active_path, BLI_findlink(), CTX_data_scene(), ListBase::first, Scene::keyingsets, NULL, and KeyingSet::paths.
Referenced by ANIM_OT_keying_set_path_remove().
| static int keyingset_poll_default_add | ( | bContext * | C | ) | [static] |
Definition at line 80 of file keyingsets.c.
References CTX_data_scene(), and NULL.
Referenced by ANIM_OT_keying_set_add().
| static int remove_active_keyingset_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 156 of file keyingsets.c.
References Scene::active_keyingset, BKE_keyingset_free(), BKE_report(), BLI_findlink(), BLI_freelinkN(), CTX_data_scene(), Scene::keyingsets, NC_SCENE, ND_KEYINGSET, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by ANIM_OT_keying_set_remove().
| static int remove_active_ks_path_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 245 of file keyingsets.c.
References Scene::active_keyingset, KeyingSet::active_path, BKE_keyingset_free_path(), BKE_report(), BLI_findlink(), 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 int remove_keyingset_button_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 391 of file keyingsets.c.
References Scene::active_keyingset, BKE_keyingset_find_path(), BKE_keyingset_free_path(), BKE_report(), BLI_findlink(), CTX_data_main(), CTX_data_scene(), DAG_ids_flush_update(), PointerRNA::data, PointerRNA::id, Scene::keyingsets, KSP_GROUP_KSNAME, MEM_freeN(), KeyingSet::name, NC_SCENE, ND_KEYINGSET, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RNA_path_from_ID_to_property(), RPT_ERROR, uiContextActiveProperty(), and WM_event_add_notifier().
Referenced by ANIM_OT_keyingset_button_remove().
| static void RKS_ITER_overrides_list | ( | KeyingSetInfo * | ksi, |
| bContext * | C, | ||
| KeyingSet * | ks, | ||
| ListBase * | dsources | ||
| ) | [static] |
Definition at line 842 of file keyingsets.c.
References ListBase::first, KeyingSetInfo::generate, tRKS_DSource::next, and tRKS_DSource::ptr.
Referenced by ANIM_apply_keyingset().
| ListBase builtin_keyingsets = {NULL, NULL} |
Definition at line 521 of file keyingsets.c.
Referenced by delete_key_exec(), and insert_key_exec().
ListBase keyingset_type_infos = {NULL, NULL} [static] |
Definition at line 518 of file keyingsets.c.