|
Blender V4.3
|
Go to the source code of this file.
Classes | |
| struct | AnimationEvalContext |
| struct | AnimationBasePathChange |
Typedefs | |
| typedef struct AnimationEvalContext | AnimationEvalContext |
| typedef struct AnimationBasePathChange | AnimationBasePathChange |
| typedef struct NlaKeyframingContext | NlaKeyframingContext |
| typedef enum eAnimData_Recalc | eAnimData_Recalc |
Enumerations | |
| enum | eAnimData_Recalc { ADT_RECALC_DRIVERS = (1 << 0) , ADT_RECALC_ANIM = (1 << 1) , ADT_RECALC_ALL = (ADT_RECALC_DRIVERS | ADT_RECALC_ANIM) } |
Functions | |
| AnimationEvalContext | BKE_animsys_eval_context_construct (struct Depsgraph *depsgraph, float eval_time) ATTR_WARN_UNUSED_RESULT |
| AnimationEvalContext | BKE_animsys_eval_context_construct_at (const AnimationEvalContext *anim_eval_context, float eval_time) ATTR_WARN_UNUSED_RESULT |
| struct KeyingSet * | BKE_keyingset_add (struct ListBase *list, const char idname[], const char name[], short flag, short keyingflag) |
| struct KS_Path * | BKE_keyingset_add_path (struct KeyingSet *ks, struct ID *id, const char group_name[], const char rna_path[], int array_index, short flag, short groupmode) |
| struct KS_Path * | BKE_keyingset_find_path (struct KeyingSet *ks, struct ID *id, const char group_name[], const char rna_path[], int array_index, int group_mode) |
| void | BKE_keyingsets_copy (struct ListBase *newlist, const struct ListBase *list) |
| void | BKE_keyingsets_foreach_id (struct LibraryForeachIDData *data, const struct ListBase *keyingsets) |
| void | BKE_keyingset_free_path (struct KeyingSet *ks, struct KS_Path *ksp) |
| void | BKE_keyingset_free_paths (struct KeyingSet *ks) |
| void | BKE_keyingsets_free (struct ListBase *list) |
| void | BKE_keyingsets_blend_write (struct BlendWriter *writer, struct ListBase *list) |
| void | BKE_keyingsets_blend_read_data (struct BlendDataReader *reader, struct ListBase *list) |
| char * | BKE_animsys_fix_rna_path_rename (struct ID *owner_id, char *old_path, const char *prefix, const char *oldName, const char *newName, int oldSubscript, int newSubscript, bool verify_paths) |
| void | BKE_action_fix_paths_rename (struct ID *owner_id, struct bAction *act, const char *prefix, const char *oldName, const char *newName, int oldSubscript, int newSubscript, bool verify_paths) |
| void | BKE_animdata_fix_paths_rename (struct ID *owner_id, struct AnimData *adt, struct ID *ref_id, const char *prefix, const char *oldName, const char *newName, int oldSubscript, int newSubscript, bool verify_paths) |
| void | BKE_animdata_fix_paths_rename_all_ex (struct Main *bmain, struct ID *ref_id, const char *prefix, const char *oldName, const char *newName, int oldSubscript, int newSubscript, bool verify_paths) |
| void | BKE_animdata_fix_paths_rename_all (struct ID *ref_id, const char *prefix, const char *oldName, const char *newName) |
| bool | BKE_animdata_fix_paths_remove (struct ID *id, const char *prefix) |
| void | BKE_animdata_transfer_by_basepath (struct Main *bmain, struct ID *srcID, struct ID *dstID, struct ListBase *basepaths) |
| struct NlaKeyframingContext * | BKE_animsys_get_nla_keyframing_context (struct ListBase *cache, struct PointerRNA *ptr, struct AnimData *adt, const struct AnimationEvalContext *anim_eval_context) |
| void | BKE_animsys_nla_remap_keyframe_values (struct NlaKeyframingContext *context, struct PointerRNA *prop_ptr, struct PropertyRNA *prop, const blender::MutableSpan< float > values, int index, const struct AnimationEvalContext *anim_eval_context, bool *r_force_all, blender::BitVector<> &r_values_mask) |
| void | BKE_animsys_free_nla_keyframing_context_cache (struct ListBase *cache) |
| bool | BKE_animsys_rna_path_resolve (struct PointerRNA *ptr, const char *rna_path, int array_index, struct PathResolvedRNA *r_result) |
| bool | BKE_animsys_read_from_rna_path (struct PathResolvedRNA *anim_rna, float *r_value) |
| bool | BKE_animsys_write_to_rna_path (struct PathResolvedRNA *anim_rna, float value) |
| void | BKE_animsys_evaluate_animdata (struct ID *id, struct AnimData *adt, const struct AnimationEvalContext *anim_eval_context, eAnimData_Recalc recalc, bool flush_to_original) |
| void | BKE_animsys_evaluate_all_animation (struct Main *main, struct Depsgraph *depsgraph, float ctime) |
| void | animsys_evaluate_action (struct PointerRNA *ptr, struct bAction *act, int32_t action_slot_handle, const struct AnimationEvalContext *anim_eval_context, bool flush_to_original) |
| void | animsys_blend_in_action (struct PointerRNA *ptr, struct bAction *act, int32_t action_slot_handle, const AnimationEvalContext *anim_eval_context, float blend_factor) |
| void | animsys_evaluate_action_group (struct PointerRNA *ptr, struct bAction *act, struct bActionGroup *agrp, const struct AnimationEvalContext *anim_eval_context) |
| void | BKE_animsys_eval_animdata (struct Depsgraph *depsgraph, struct ID *id) |
| void | BKE_animsys_eval_driver (struct Depsgraph *depsgraph, struct ID *id, int driver_index, struct FCurve *fcu_orig) |
| void | BKE_animsys_update_driver_array (struct ID *id) |
| typedef struct AnimationBasePathChange AnimationBasePathChange |
| typedef struct AnimationEvalContext AnimationEvalContext |
Container for data required to do FCurve and Driver evaluation.
| typedef enum eAnimData_Recalc eAnimData_Recalc |
| typedef struct NlaKeyframingContext NlaKeyframingContext |
Definition at line 213 of file BKE_animsys.h.
| enum eAnimData_Recalc |
| Enumerator | |
|---|---|
| ADT_RECALC_DRIVERS | |
| ADT_RECALC_ANIM | |
| ADT_RECALC_ALL | |
Definition at line 265 of file BKE_animsys.h.
| void animsys_blend_in_action | ( | struct PointerRNA * | ptr, |
| struct bAction * | act, | ||
| int32_t | action_slot_handle, | ||
| const AnimationEvalContext * | anim_eval_context, | ||
| float | blend_factor ) |
Definition at line 916 of file anim_sys.cc.
References action_idcode_patch_check(), animsys_blend_in_fcurves(), blender::animrig::legacy::fcurves_for_action_slot(), blender::animrig::Action::is_action_legacy(), PointerRNA::owner_id, and ptr.
Referenced by blender::animrig::pose_apply_action_blend().
| void animsys_evaluate_action | ( | struct PointerRNA * | ptr, |
| struct bAction * | act, | ||
| int32_t | action_slot_handle, | ||
| const struct AnimationEvalContext * | anim_eval_context, | ||
| bool | flush_to_original ) |
Evaluate Action (F-Curve Bag).
Note that this is only used for either legacy Actions or for evaluation of the NLA.
Referenced by blender::animrig::pose_apply_action_all_bones(), and blender::animrig::pose_apply_action_selected_bones().
| void animsys_evaluate_action_group | ( | struct PointerRNA * | ptr, |
| struct bAction * | act, | ||
| struct bActionGroup * | agrp, | ||
| const struct AnimationEvalContext * | anim_eval_context ) |
Referenced by what_does_obaction().
| void BKE_action_fix_paths_rename | ( | struct ID * | owner_id, |
| struct bAction * | act, | ||
| const char * | prefix, | ||
| const char * | oldName, | ||
| const char * | newName, | ||
| int | oldSubscript, | ||
| int | newSubscript, | ||
| bool | verify_paths ) |
Fix all the paths for the given ID + Action.
This is just an external wrapper for the F-Curve fixing function, with input validity checks on top of the basic method.
<prefix><["><name><"]> i.e. pose.bones["Bone"]. Definition at line 1038 of file anim_data.cc.
References BLI_array_alloca, BLI_sprintfN(), BLI_str_escape(), ELEM, blender::animrig::legacy::fcurves_all(), fcurves_path_rename_fix(), and MEM_freeN().
Referenced by constraint_bone_name_fix(), and joined_armature_fix_links_constraints().
| bool BKE_animdata_fix_paths_remove | ( | struct ID * | id, |
| const char * | prefix ) |
Remove any animation data (F-Curves from Actions, and drivers) that have an RNA path starting with prefix.
Return true if any animation data was affected.
Definition at line 1214 of file anim_data.cc.
References AnimData::action, blender::animrig::legacy::action_fcurves_remove(), BKE_animdata_from_id(), AnimData::drivers, fcurves_path_remove_from_listbase(), LISTBASE_FOREACH, AnimData::nla_tracks, nlastrips_path_remove_fix(), AnimData::slot_handle, AnimData::tmp_slot_handle, and AnimData::tmpact.
Referenced by clip_delete_plane_track(), clip_delete_track(), blender::bke::node_remove_node(), and version_principled_bsdf_update_animdata().
| void BKE_animdata_fix_paths_rename | ( | struct ID * | owner_id, |
| struct AnimData * | adt, | ||
| struct ID * | ref_id, | ||
| const char * | prefix, | ||
| const char * | oldName, | ||
| const char * | newName, | ||
| int | oldSubscript, | ||
| int | newSubscript, | ||
| bool | verify_paths ) |
Fix all the paths for the given ID+AnimData
<prefix><["><name><"]> i.e. pose.bones["Bone"]. Definition at line 1089 of file anim_data.cc.
References AnimData::action, BLI_array_alloca, BLI_sprintfN(), BLI_str_escape(), DEG_id_tag_update(), AnimData::drivers, drivers_path_rename_fix(), ELEM, blender::animrig::legacy::fcurves_all(), fcurves_path_rename_fix(), bAction::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, MEM_freeN(), AnimData::nla_tracks, nlastrips_path_rename_fix(), and AnimData::tmpact.
Referenced by BKE_animdata_fix_paths_rename_all_ex(), SEQ_ensure_unique_name(), texture_slot_move_exec(), and version_principled_bsdf_update_animdata().
| void BKE_animdata_fix_paths_rename_all | ( | struct ID * | ref_id, |
| const char * | prefix, | ||
| const char * | oldName, | ||
| const char * | newName ) |
See BKE_animdata_fix_paths_rename_all_ex
Definition at line 1429 of file anim_data.cc.
References BKE_animdata_fix_paths_rename_all_ex(), and G.
Referenced by ANIM_armature_bonecoll_name_set(), BKE_mask_layer_rename(), BKE_view_layer_rename(), and ED_armature_bone_rename().
| void BKE_animdata_fix_paths_rename_all_ex | ( | struct Main * | bmain, |
| struct ID * | ref_id, | ||
| const char * | prefix, | ||
| const char * | oldName, | ||
| const char * | newName, | ||
| int | oldSubscript, | ||
| int | newSubscript, | ||
| bool | verify_paths ) |
Fix all RNA-Paths throughout the database (directly access the Global.main version).
<prefix><["><name><"]> i.e. pose.bones["Bone"] Definition at line 1438 of file anim_data.cc.
References BKE_animdata_fix_paths_rename(), and BKE_animdata_main_cb().
Referenced by BKE_animdata_fix_paths_rename_all(), and version_node_socket_index_animdata().
| void BKE_animdata_transfer_by_basepath | ( | struct Main * | bmain, |
| struct ID * | srcID, | ||
| struct ID * | dstID, | ||
| struct ListBase * | basepaths ) |
Move animation data from source to destination if its paths are based on basepaths.
Transfer the animation data from srcID to dstID where the srcID animation data is based off basepath, creating new AnimData and associated data as necessary.
| basepaths | A list of AnimationBasePathChange. |
Definition at line 694 of file anim_data.cc.
References AnimData::action, blender::animrig::action_add(), action_move_fcurves_by_basepath(), animdata_move_drivers_by_basepath(), blender::animrig::assign_action(), BKE_animdata_ensure_id(), BKE_animdata_from_id(), BLI_assert, BLI_assert_msg, CLOG_ERROR, CLOG_WARN, DEG_id_tag_update(), AnimData::drivers, ELEM, ListBase::first, G, G_DEBUG, bAction::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, LOG, ID::name, blender::animrig::Action::slot_add_for_id(), AnimData::slot_handle, blender::animrig::unassign_action(), blender::animrig::Slot::unassigned, UNUSED_VARS_NDEBUG, and USER_EXPERIMENTAL_TEST.
Referenced by blender::ed::space_node::node_group_make_insert_selected(), blender::ed::space_node::node_group_separate_selected(), and blender::ed::space_node::node_group_ungroup().
| void BKE_animsys_eval_animdata | ( | struct Depsgraph * | depsgraph, |
| struct ID * | id ) |
Definition at line 4187 of file anim_sys.cc.
References ADT_RECALC_ANIM, BKE_animdata_from_id(), BKE_animsys_eval_context_construct(), BKE_animsys_evaluate_animdata(), DEG_debug_print_eval_time(), DEG_get_ctime(), DEG_is_active(), and depsgraph.
Referenced by blender::deg::DepsgraphNodeBuilder::build_animdata().
| AnimationEvalContext BKE_animsys_eval_context_construct | ( | struct Depsgraph * | depsgraph, |
| float | eval_time ) |
Definition at line 734 of file anim_sys.cc.
References AnimationEvalContext::depsgraph, and depsgraph.
Referenced by achannel_setting_slider_cb(), achannel_setting_slider_nla_curve_cb(), achannel_setting_slider_shapekey_cb(), actcon_get_tarmat(), blender::animrig::autokeyframe_object(), blender::animrig::autokeyframe_pose_channel(), blender::animrig::autokeyframe_property(), BKE_animsys_eval_animdata(), BKE_animsys_eval_context_construct_at(), BKE_animsys_eval_driver(), BKE_animsys_evaluate_all_animation(), BKE_object_modifier_update_subframe(), BKE_object_where_is_calc_time(), insert_action_keys(), insert_graph_keys(), insert_key(), insert_key_button_exec(), insert_key_to_keying_set_path(), blender::ed::object::ocean_bake_exec(), particle_system_update(), pose_clear_user_transforms_exec(), poselib_blend_apply(), pyrna_struct_keyframe_insert(), RE_RenderAnim(), seq_prefetch_anim_eval_context(), seq_render_mask(), UI_block_end_ex(), and UI_context_update_anim_flag().
| AnimationEvalContext BKE_animsys_eval_context_construct_at | ( | const AnimationEvalContext * | anim_eval_context, |
| float | eval_time ) |
Definition at line 742 of file anim_sys.cc.
References BKE_animsys_eval_context_construct(), and AnimationEvalContext::depsgraph.
Referenced by nlastrip_evaluate_meta(), nlastrips_ctime_get_strip(), and ui_but_anim_flag().
| void BKE_animsys_eval_driver | ( | struct Depsgraph * | depsgraph, |
| struct ID * | id, | ||
| int | driver_index, | ||
| struct FCurve * | fcu_orig ) |
Definition at line 4222 of file anim_sys.cc.
References animsys_write_orig_anim_rna(), FCurve::array_index, BKE_animdata_from_id(), BKE_animsys_eval_context_construct(), BKE_animsys_rna_path_resolve(), BKE_animsys_write_to_rna_path(), BLI_assert, BLI_findlink(), calculate_fcurve(), CLOG_WARN, ChannelDriver::curval, DriverVar::curval, FCurve::curval, DEG_debug_print_eval_subdata_index(), DEG_get_ctime(), DEG_is_active(), depsgraph, FCurve::driver, AnimData::driver_array, DRIVER_FLAG_INVALID, AnimData::drivers, FCURVE_DISABLED, FCURVE_MUTED, ListBase::first, ChannelDriver::flag, DriverTarget::flag, DriverVar::flag, FCurve::flag, LOG, MAX_DRIVER_TARGETS, DriverVar::next, RNA_id_pointer_create(), FCurve::rna_path, DriverVar::targets, and ChannelDriver::variables.
Referenced by blender::deg::DepsgraphNodeBuilder::build_driver().
| void BKE_animsys_evaluate_all_animation | ( | struct Main * | main, |
| struct Depsgraph * | depsgraph, | ||
| float | ctime ) |
Evaluation of all ID-blocks with Animation Data blocks - Animation Data Only
This will evaluate only the animation info available in the animation data-blocks encountered. In order to enforce the system by which some settings controlled by a 'local' (i.e. belonging in the nearest ID-block that setting is related to, not a standard 'root') block are overridden by a larger 'user'
Definition at line 4039 of file anim_sys.cc.
References ADT_RECALC_ANIM, BKE_animsys_eval_context_construct(), BLI_listbase_is_empty(), DEG_is_active(), depsgraph, EVAL_ANIM_IDS, EVAL_ANIM_NODETREE_IDS, G, G_DEBUG, main(), and printf.
Referenced by do_render_strip_seqbase().
| void BKE_animsys_evaluate_animdata | ( | struct ID * | id, |
| struct AnimData * | adt, | ||
| const struct AnimationEvalContext * | anim_eval_context, | ||
| eAnimData_Recalc | recalc, | ||
| bool | flush_to_original ) |
Evaluation loop for evaluation animation data
This assumes that the animation-data provided belongs to the ID block in question, and that the flags for which parts of the animation-data settings need to be recalculated have been set already by the depsgraph. Now, we use the recalculate.
Referenced by BKE_object_modifier_update_subframe(), BKE_object_where_is_calc_time(), blender::ed::object::ocean_bake_exec(), particle_system_update(), pose_clear_user_transforms_exec(), RE_RenderAnim(), seq_prefetch_frames(), seq_render_mask(), and what_does_obaction().
| char * BKE_animsys_fix_rna_path_rename | ( | struct ID * | owner_id, |
| char * | old_path, | ||
| const char * | prefix, | ||
| const char * | oldName, | ||
| const char * | newName, | ||
| int | oldSubscript, | ||
| int | newSubscript, | ||
| bool | verify_paths ) |
Get a "fixed" version of the given path old_path.
This is just an external wrapper for the RNA-Path fixing function, with input validity checks on top of the basic method.
<prefix><["><name><"]> i.e. pose.bones["Bone"]. Definition at line 981 of file anim_data.cc.
References BLI_array_alloca, BLI_sprintfN(), BLI_str_escape(), CLOG_WARN, ELEM, G, G_DEBUG, LOG, MEM_freeN(), printf, result, and rna_path_rename_fix().
Referenced by joined_armature_fix_animdata_cb().
| void BKE_animsys_free_nla_keyframing_context_cache | ( | struct ListBase * | cache | ) |
Free all cached contexts from the list.
Definition at line 3913 of file anim_sys.cc.
References BLI_freelistN(), LISTBASE_FOREACH, MEM_SAFE_FREE, and nlaeval_free().
Referenced by achannel_setting_slider_cb(), and blender::animrig::insert_keyframes().
| struct NlaKeyframingContext * BKE_animsys_get_nla_keyframing_context | ( | struct ListBase * | cache, |
| struct PointerRNA * | ptr, | ||
| struct AnimData * | adt, | ||
| const struct AnimationEvalContext * | anim_eval_context ) |
Prepare data necessary to compute correct keyframe values for NLA strips with non-Replace mode or influence different from 1.
| cache | List used to cache contexts for reuse when keying multiple channels in one operation. |
| ptr | RNA pointer to the ID with the animation. |
Referenced by achannel_setting_slider_cb(), and blender::animrig::nla_time_remap().
| void BKE_animsys_nla_remap_keyframe_values | ( | struct NlaKeyframingContext * | context, |
| struct PointerRNA * | prop_ptr, | ||
| struct PropertyRNA * | prop, | ||
| const blender::MutableSpan< float > | values, | ||
| int | index, | ||
| const struct AnimationEvalContext * | anim_eval_context, | ||
| bool * | r_force_all, | ||
| blender::BitVector<> & | r_values_mask ) |
Apply correction from the NLA context to the values about to be keyframed.
| context | Context to use (may be NULL). | |
| prop_ptr | Property about to be keyframed. | |
| [in,out] | values | Span of property values to adjust. |
| index | Index of the element about to be updated, or -1. | |
| [out] | r_force_all | For array properties, set to true if the property should be treated as all-or-nothing (i.e. where either all elements get keyed or none do). Irrelevant for non-array properties. May be NULL. |
| [out] | r_values_mask | A mask for the elements of values, where bits are set to true for the elements that were both indicated by index and for which valid keying values were successfully computed. In short, this is a mask for the indices that can get keyed. |
Referenced by blender::animrig::insert_keyframes(), and blender::animrig::nla_map_keyframe_values_and_generate_reports().
| bool BKE_animsys_read_from_rna_path | ( | struct PathResolvedRNA * | anim_rna, |
| float * | r_value ) |
Definition at line 399 of file anim_sys.cc.
References BLI_assert, float, PointerRNA::owner_id, PathResolvedRNA::prop, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PathResolvedRNA::prop_index, PROP_INT, PathResolvedRNA::ptr, ptr, RNA_property_animateable(), 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 animsys_blend_in_fcurves(), BKE_animsys_write_to_rna_path(), and blender::deg::AnimationBackup::init_from_id().
| bool BKE_animsys_rna_path_resolve | ( | struct PointerRNA * | ptr, |
| const char * | rna_path, | ||
| int | array_index, | ||
| struct PathResolvedRNA * | r_result ) |
Definition at line 350 of file anim_sys.cc.
References CLOG_WARN, G, G_DEBUG, LOG, ID::name, PointerRNA::owner_id, PathResolvedRNA::prop, PathResolvedRNA::prop_index, PathResolvedRNA::ptr, ptr, RNA_path_resolve_property(), RNA_property_animateable(), and RNA_property_array_length().
Referenced by animsys_blend_in_fcurves(), animsys_evaluate_action_group(), animsys_evaluate_drivers(), animsys_evaluate_fcurves(), animsys_evaluate_overrides(), animsys_write_orig_anim_rna(), blender::animrig::animsys_write_orig_anim_rna(), BKE_animsys_eval_driver(), blender::animrig::evaluate_keyframe_data(), blender::deg::AnimationBackup::init_from_id(), and blender::deg::AnimationBackup::restore_to_id().
| void BKE_animsys_update_driver_array | ( | struct ID * | id | ) |
Definition at line 4201 of file anim_sys.cc.
References BKE_animdata_from_id(), BLI_assert, BLI_listbase_count(), AnimData::driver_array, AnimData::drivers, ListBase::first, LISTBASE_FOREACH, and MEM_mallocN.
| bool BKE_animsys_write_to_rna_path | ( | struct PathResolvedRNA * | anim_rna, |
| float | value ) |
Write the given value to a setting using RNA, and return success.
Definition at line 460 of file anim_sys.cc.
References ANIMSYS_FLOAT_AS_BOOL, BKE_animsys_read_from_rna_path(), BLI_assert, int, PointerRNA::owner_id, PathResolvedRNA::prop, PROP_BOOLEAN, PROP_ENUM, PROP_FLOAT, PathResolvedRNA::prop_index, PROP_INT, PathResolvedRNA::ptr, ptr, RNA_property_animateable(), RNA_property_boolean_set(), RNA_property_boolean_set_index(), RNA_property_enum_set(), RNA_property_float_clamp(), RNA_property_float_set(), RNA_property_float_set_index(), RNA_property_int_clamp(), RNA_property_int_set(), RNA_property_int_set_index(), and RNA_property_type().
Referenced by animsys_blend_in_fcurves(), animsys_evaluate_action_group(), animsys_evaluate_drivers(), animsys_evaluate_fcurves(), animsys_evaluate_overrides(), animsys_write_orig_anim_rna(), blender::animrig::animsys_write_orig_anim_rna(), blender::animrig::apply_evaluation_result(), BKE_animsys_eval_driver(), nladata_flush_channels(), and blender::deg::AnimationBackup::restore_to_id().
| struct KeyingSet * BKE_keyingset_add | ( | struct ListBase * | list, |
| const char | idname[], | ||
| const char | name[], | ||
| short | flag, | ||
| short | keyingflag ) |
Used to create a new 'custom' KeyingSet for the user, that will be automatically added to the stack.
Definition at line 134 of file anim_sys.cc.
References BLI_addtail(), BLI_uniquename(), DATA_, flag, KeyingSet::flag, KeyingSet::idname, KeyingSet::keyingflag, KeyingSet::keyingoverride, MEM_callocN, KeyingSet::name, offsetof, and STRNCPY_UTF8.
Referenced by add_default_keyingset_exec(), add_keyingset_button_exec(), ANIM_keyingset_info_register(), and blender::ed::outliner::verify_active_keyingset().
| struct KS_Path * BKE_keyingset_add_path | ( | struct KeyingSet * | ks, |
| struct ID * | id, | ||
| const char | group_name[], | ||
| const char | rna_path[], | ||
| int | array_index, | ||
| short | flag, | ||
| short | groupmode ) |
Add a path to a KeyingSet. Nothing is returned for now. Checks are performed to ensure that destination is appropriate for the KeyingSet in question
Definition at line 164 of file anim_sys.cc.
References KS_Path::array_index, BKE_keyingset_find_path(), BLI_addtail(), BLI_strdup(), CLOG_ERROR, ELEM, flag, KS_Path::flag, G, G_DEBUG, KS_Path::group, KS_Path::groupmode, GS, KS_Path::id, KS_Path::idtype, LOG, MEM_callocN, KeyingSet::paths, KS_Path::rna_path, and STRNCPY.
Referenced by add_keyingset_button_exec(), and blender::ed::outliner::do_outliner_keyingset_editop().
| struct KS_Path * BKE_keyingset_find_path | ( | struct KeyingSet * | ks, |
| struct ID * | id, | ||
| const char | group_name[], | ||
| const char | rna_path[], | ||
| int | array_index, | ||
| int | group_mode ) |
Find the destination matching the criteria given. TODO: do we want some method to perform partial matches too?
Definition at line 84 of file anim_sys.cc.
References ELEM, LISTBASE_FOREACH, KeyingSet::paths, and STREQ.
Referenced by BKE_keyingset_add_path(), blender::ed::outliner::do_outliner_keyingset_editop(), and remove_keyingset_button_exec().
Definition at line 227 of file anim_sys.cc.
References BLI_freelinkN(), ELEM, MEM_freeN(), KeyingSet::paths, and KS_Path::rna_path.
Referenced by BKE_keyingset_free_paths(), blender::ed::outliner::do_outliner_keyingset_editop(), remove_active_ks_path_exec(), and remove_keyingset_button_exec().
| void BKE_keyingset_free_paths | ( | struct KeyingSet * | ks | ) |
Definition at line 267 of file anim_sys.cc.
References BKE_keyingset_free_path(), ListBase::first, KS_Path::next, and KeyingSet::paths.
Referenced by ANIM_keyingset_info_unregister(), ANIM_validate_keyingset(), BKE_keyingsets_free(), and remove_active_keyingset_exec().
| void BKE_keyingsets_blend_read_data | ( | struct BlendDataReader * | reader, |
| struct ListBase * | list ) |
Definition at line 320 of file anim_sys.cc.
References BLO_read_string(), BLO_read_struct_list, and LISTBASE_FOREACH.
Referenced by scene_blend_read_data().
| void BKE_keyingsets_blend_write | ( | struct BlendWriter * | writer, |
| struct ListBase * | list ) |
Definition at line 302 of file anim_sys.cc.
References BLO_write_string(), BLO_write_struct, and LISTBASE_FOREACH.
Referenced by scene_blend_write().
Referenced by scene_copy_data().
| void BKE_keyingsets_foreach_id | ( | struct LibraryForeachIDData * | data, |
| const struct ListBase * | keyingsets ) |
Process the ID pointers inside a scene's keyingsets, in see BKE_lib_query.hh for details.
Referenced by scene_foreach_id().
| void BKE_keyingsets_free | ( | struct ListBase * | list | ) |
Definition at line 283 of file anim_sys.cc.
References BKE_keyingset_free_paths(), BLI_freelinkN(), and KeyingSet::next.
Referenced by ANIM_keyingset_infos_exit(), and scene_free_data().