Blender V5.3
action.cc File Reference
#include <cmath>
#include <cstddef>
#include <cstdlib>
#include <cstring>
#include <optional>
#include "DNA_ID.h"
#include "DNA_action_types.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_assert.hh"
#include "BLI_listbase.hh"
#include "BLI_math_color_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_session_uid.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_string_utils.hh"
#include "BLI_utildefines.hh"
#include "BLT_translation.hh"
#include "BKE_action.hh"
#include "BKE_anim_data.hh"
#include "BKE_anim_visualization.h"
#include "BKE_animsys.hh"
#include "BKE_armature.hh"
#include "BKE_asset.hh"
#include "BKE_constraint.h"
#include "BKE_deform.hh"
#include "BKE_fcurve.hh"
#include "BKE_idprop.hh"
#include "BKE_idtype.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_query.hh"
#include "BKE_main.hh"
#include "BKE_object.hh"
#include "BKE_object_types.hh"
#include "BKE_pose.hh"
#include "BKE_preview_image.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "BIK_api.h"
#include "RNA_access.hh"
#include "RNA_path.hh"
#include "BLO_read_write.hh"
#include "MEM_guardedalloc.h"
#include "ANIM_action.hh"
#include "ANIM_action_legacy.hh"
#include "ANIM_armature.hh"
#include "ANIM_bone_collections.hh"
#include "ANIM_bonecolor.hh"
#include "ANIM_versioning.hh"
#include "CLG_log.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke

Macros

#define DNA_DEPRECATED_ALLOW

Functions

static void blender::bke::action_init_data (ID *action_id)
static void blender::bke::action_copy_data (Main *, std::optional< Library * >, ID *id_dst, const ID *id_src, const int flag)
static void blender::bke::action_free_data (ID *id)
static void blender::bke::action_foreach_id (ID *id, LibraryForeachIDData *data)
static void blender::bke::write_channelbag (BlendWriter *writer, animrig::Channelbag &channelbag)
static void blender::bke::write_strip_keyframe_data (BlendWriter *writer, animrig::StripKeyframeData &strip_keyframe_data)
static void blender::bke::write_strip_keyframe_data_array (BlendWriter *writer, Span< animrig::StripKeyframeData * > strip_keyframe_data_array)
static void blender::bke::write_strips (BlendWriter *writer, Span< animrig::Strip * > strips)
static void blender::bke::write_layers (BlendWriter *writer, Span< animrig::Layer * > layers)
static void blender::bke::write_slots (BlendWriter *writer, Span< animrig::Slot * > slots)
static void blender::bke::action_blend_write_make_legacy_channel_groups_listbase (ListBaseT< bActionGroup > &listbase, const Span< bActionGroup * > channel_groups)
static void blender::bke::action_blend_write_clear_legacy_channel_groups_listbase (ListBaseT< bActionGroup > &listbase)
static void blender::bke::action_blend_write_make_legacy_fcurves_listbase (ListBaseT< FCurve > &listbase, const Span< FCurve * > fcurves)
static void blender::bke::action_blend_write_clear_legacy_fcurves_listbase (ListBaseT< FCurve > &listbase)
static void blender::bke::action_blend_write (BlendWriter *writer, ID *id, const void *id_address)
static void blender::bke::read_channelbag (BlendDataReader *reader, animrig::Channelbag &channelbag)
static void blender::bke::read_strip_keyframe_data (BlendDataReader *reader, animrig::StripKeyframeData &strip_keyframe_data)
static void blender::bke::read_strip_keyframe_data_array (BlendDataReader *reader, animrig::Action &action)
static void blender::bke::read_layers (BlendDataReader *reader, animrig::Action &action)
static void blender::bke::read_slots (BlendDataReader *reader, animrig::Action &action)
static void blender::bke::action_blend_read_data (BlendDataReader *reader, ID *id)
static IDProperty * blender::bke::action_asset_type_property (const bAction *action)
static void blender::bke::action_asset_metadata_ensure (void *asset_ptr, AssetMetaData *asset_data)
bAction * blender::BKE_action_add (Main *bmain, const char name[])
void blender::action_group_colors_sync (bActionGroup *grp)
void blender::action_group_colors_set_from_posebone (bActionGroup *grp, bke::PChanBoneConst pchanbone)
void blender::action_group_colors_set (bActionGroup *grp, const BoneColor *color)
void blender::BKE_pose_channel_session_uid_generate (bPoseChannel *pchan)
bPoseChannel * blender::BKE_pose_channel_find_name (const bPose *pose, const char *name)
bPoseChannel * blender::BKE_pose_channel_ensure (bPose *pose, const char *name) ATTR_NONNULL(2)
bool blender::BKE_pose_channels_is_valid (const bPose *pose) ATTR_WARN_UNUSED_RESULT
bool blender::BKE_pose_is_bonecoll_visible (const bArmature *arm, const bPoseChannel *pchan) ATTR_WARN_UNUSED_RESULT
bPoseChannel * blender::BKE_pose_channel_active (Object *ob, bool check_bonecoll)
bPoseChannel * blender::BKE_pose_channel_active_if_bonecoll_visible (Object *ob) ATTR_WARN_UNUSED_RESULT
bPoseChannel * blender::BKE_pose_channel_active_or_first_selected (Object *ob) ATTR_WARN_UNUSED_RESULT
bPoseChannel * blender::BKE_pose_channel_get_mirrored (const bPose *pose, const char *name) ATTR_WARN_UNUSED_RESULT
const char * blender::BKE_pose_ikparam_get_name (bPose *pose) ATTR_WARN_UNUSED_RESULT
void blender::BKE_pose_copy_data_ex (bPose **dst, const bPose *src, int flag, bool copy_constraints)
void blender::BKE_pose_copy_data (bPose **dst, const bPose *src, bool copy_constraints)
void blender::BKE_pose_itasc_init (bItasc *itasc)
void blender::BKE_pose_ikparam_init (bPose *pose) ATTR_NONNULL(1)
static bool blender::pose_channel_in_IK_chain (Object *ob, bPoseChannel *pchan, int level)
bool blender::BKE_pose_channel_in_IK_chain (Object *ob, bPoseChannel *pchan)
static bool blender::transform_follows_custom_tx (const bArmature *arm, const bPoseChannel *pchan)
void blender::BKE_pose_channel_transform_orientation (const bArmature *arm, const bPoseChannel *pose_bone, float r_pose_orientation[3][3])
void blender::BKE_pose_channel_transform_location (const bArmature *arm, const bPoseChannel *pose_bone, float r_pose_space_pivot[3])
void blender::BKE_pose_channels_hash_ensure (bPose *pose) ATTR_NONNULL(1)
void blender::BKE_pose_channels_hash_free (bPose *pose) ATTR_NONNULL(1)
static void blender::pose_channels_remove_internal_links (Object *ob, bPoseChannel *unlinked_pchan)
void blender::BKE_pose_channels_remove (Object *ob, bool(*filter_fn)(const char *bone_name, void *user_data), void *user_data) ATTR_NONNULL(1
void blender::BKE_pose_channel_free_ex (bPoseChannel *pchan, bool do_id_user) ATTR_NONNULL(1)
void blender::BKE_pose_channel_runtime_reset (bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void blender::BKE_pose_channel_runtime_reset_on_copy (bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void blender::BKE_pose_channel_runtime_free (bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void blender::BKE_pose_channel_free_bbone_cache (bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void blender::BKE_pose_channel_free (bPoseChannel *pchan) ATTR_NONNULL(1)
void blender::BKE_pose_channels_free_ex (bPose *pose, bool do_id_user) ATTR_NONNULL(1)
void blender::BKE_pose_channels_free (bPose *pose) ATTR_NONNULL(1)
void void blender::BKE_pose_free_data_ex (bPose *pose, bool do_id_user) ATTR_NONNULL(1)
void blender::BKE_pose_free_data (bPose *pose) ATTR_NONNULL(1)
void blender::BKE_pose_free_ex (bPose *pose, bool do_id_user)
void blender::BKE_pose_free (bPose *pose)
void blender::BKE_pose_channel_copy_data (bPoseChannel *pchan, const bPoseChannel *pchan_from)
void blender::BKE_pose_update_constraint_flags (Object &pose_ob)
void blender::BKE_pose_tag_update_constraint_flags (bPose *pose) ATTR_NONNULL(1)
bActionGroup * blender::BKE_pose_add_group (bPose *pose, const char *name) ATTR_NONNULL(1)
void blender::BKE_pose_remove_group (bPose *pose, bActionGroup *grp, int index) ATTR_NONNULL(1)
void blender::BKE_pose_remove_group_index (bPose *pose, int index) ATTR_NONNULL(1)
void blender::BKE_pose_rest (Object &pose_ob, bool selected_bones_only)
void void blender::BKE_pose_copy_pchan_result (bPoseChannel *pchanto, const bPoseChannel *pchanfrom) ATTR_NONNULL(1
void void bool blender::BKE_pose_copy_result (bPose *to, bPose *from)
void blender::BKE_pose_tag_recalc (Main *bmain, bPose *pose) ATTR_NONNULL(1
void blender::what_does_obaction (Object *ob, Object *workob, bPose *pose, bAction *act, int32_t action_slot_handle, const char groupname[], const AnimationEvalContext *anim_eval_context) ATTR_NONNULL(1
void blender::BKE_pose_check_uids_unique_and_report (const bPose *pose)
void void blender::BKE_pose_blend_write (BlendWriter *writer, bPose *pose) ATTR_NONNULL(1
void void void blender::BKE_pose_blend_read_data (BlendDataReader *reader, ID *id_owner, bPose *pose) ATTR_NONNULL(1
void void void void blender::BKE_pose_blend_read_after_liblink (BlendLibReader *reader, Object *ob, bPose *pose) ATTR_NONNULL(1

Variables

static CLG_LogRef blender::LOG = {"anim.action"}
static AssetTypeInfo blender::bke::AssetType_AC

Macro Definition Documentation

◆ DNA_DEPRECATED_ALLOW

#define DNA_DEPRECATED_ALLOW

Definition at line 16 of file blenkernel/intern/action.cc.