16#define DNA_DEPRECATED_ALLOW
121 std::optional<Library *> ,
129 const bAction *dna_action_src =
reinterpret_cast<const bAction *
>(id_src);
133 FCurve *fcurve_dst, *fcurve_src;
140 action_dst.
curves.clear_no_delete();
142 for (fcurve_src = action_src.
curves.first(); fcurve_src; fcurve_src = fcurve_src->
next) {
152 for (group_dst = action_dst.
groups.first(), group_src = action_src.
groups.first();
153 group_dst && group_src;
154 group_dst = group_dst->
next, group_src = group_src->
next)
156 if (fcurve_src->
grp == group_src) {
157 fcurve_dst->
grp = group_dst;
159 if (group_dst->
channels.first() == fcurve_src) {
160 group_dst->
channels.first_ = fcurve_dst;
162 if (group_dst->
channels.last() == fcurve_src) {
163 group_dst->
channels.last_ = fcurve_dst;
179 for (
int i : action_src.
layers().index_range()) {
193 for (
int i : action_src.
slots().index_range()) {
194 action_dst.
slot_array[i] = MEM_new<animrig::Slot>(__func__, *action_src.
slot(i));
212 MEM_delete(keyframe_data);
233 action.
groups.free_no_destruct();
272 if (slot_user_cache_is_known_clean) {
273 bool should_invalidate =
false;
275 for (
ID *&slot_user : slot->runtime_users()) {
276 ID *
const old_pointer = slot_user;
283 should_invalidate |= (slot_user != old_pointer);
287 if (should_invalidate) {
296 "pointers were changed while IDWALK_READONLY flag was set");
309 BKE_lib_query_idpropertiesForeachIDLink_callback(prop, data);
335 for (
FCurve *fcurve : fcurves) {
348 auto channelbags = strip_keyframe_data.
channelbags();
390 struct_writer.shallow_data.runtime =
nullptr;
414 listbase.clear_no_delete();
426 group->channels = {
nullptr,
nullptr};
429 group->channels = {fcurves.
first(), fcurves.
last()};
434 const int last_index = channel_groups.
size() - 1;
436 channel_groups[
index]->prev = (
index > 0) ? channel_groups[
index - 1] :
nullptr;
437 channel_groups[
index]->next = (
index < last_index) ? channel_groups[
index + 1] :
nullptr;
440 listbase.first_ = channel_groups[0];
441 listbase.last_ = channel_groups[last_index];
445 ListBaseT<bActionGroup> &listbase)
448 group.prev =
nullptr;
449 group.next =
nullptr;
450 group.channels = {
nullptr,
nullptr};
453 listbase.clear_no_delete();
474 listbase.clear_no_delete();
479 const int last_index = fcurves.
size() - 1;
482 fcurves[
index]->next = (
index < last_index) ? fcurves[
index + 1] :
nullptr;
485 listbase.first_ = fcurves[0];
486 listbase.last_ = fcurves[last_index];
491 for (
FCurve &fcurve : listbase.items_mutable()) {
492 fcurve.prev =
nullptr;
493 fcurve.next =
nullptr;
496 listbase.clear_no_delete();
506 if (do_write_forward_compat) {
546 if (do_write_forward_compat) {
600 fcurve->
prev =
nullptr;
601 fcurve->
next =
nullptr;
636 for (
int layer_idx = 0; layer_idx < action.
layer_array_num; layer_idx++) {
641 for (
int strip_idx = 0; strip_idx <
layer->strip_array_num; strip_idx++) {
651 if (
layer->strip_array[strip_idx] ==
nullptr) {
672 action.
slot_array[i]->wrap().blend_read_post();
691 action.
curves.clear_no_delete();
692 action.
groups.clear_no_delete();
723 const bool is_single_frame = action && action->wrap().has_single_frame();
745 .id_code = bAction::id_type,
753 .struct_size =
sizeof(
bAction),
755 .name_plural =
N_(
"actions"),
763 .make_local =
nullptr,
765 .foreach_cache =
nullptr,
766 .foreach_path =
nullptr,
767 .foreach_working_space_color =
nullptr,
768 .foreach_asset_weak_reference =
nullptr,
769 .owner_pointer_get =
nullptr,
773 .blend_read_after_liblink =
nullptr,
775 .blend_read_undo_preserve =
nullptr,
777 .lib_override_apply_post =
nullptr,
803 const bTheme *btheme =
U.themes.first();
824 "cannot 'set action group colors from posebone' without a posebone");
836 if (effective_color) {
841 memcpy(&grp->
cs, effective_color,
sizeof(grp->
cs));
851const Bone *bPoseChannel::bone_get(
const bArmature &armature)
const
866const Bone *bPoseChannel::bone_get(
const Object &owner)
const
870 bArmature *armature = id_cast<bArmature *>(owner.data);
876 return this->bone_get(*armature);
881 const bPoseChannel *const_this =
this;
882 const Bone *const_bone = const_this->bone_get(armature);
883 return const_cast<Bone *
>(const_bone);
887 const bPoseChannel *const_this =
this;
888 const Bone *const_bone = const_this->bone_get(owner);
889 return const_cast<Bone *
>(const_bone);
901 if (
ELEM(
nullptr,
pose, name) || (name[0] ==
'\0')) {
905 if (!
pose->runtime->chanhash.is_empty()) {
907 return found ? *found :
nullptr;
918 if (
pose ==
nullptr) {
924 "Bones have to have a name, otherwise the function below will always return a nullptr");
932 chan = MEM_new<bPoseChannel>(
"verifyPoseChannel");
960 if (!
pose->runtime->chanhash.is_empty()) {
961 pose->runtime->chanhash.add_overwrite(chan->
name, chan);
970 if (!
pose->runtime->chanhash.is_empty()) {
972 for (pchan =
pose->chanbase.first(); pchan; pchan = pchan->
next) {
974 if (!found || *found != pchan) {
987 const Bone *bone = pchan->bone_get(*arm);
1003 const Bone *bone = pchan.bone_get(*ob);
1004 if (bone && bone == arm->
act_bone) {
1021 bArmature *arm = id_cast<bArmature *>((ob) ? ob->
data :
nullptr);
1023 if (
ELEM(
nullptr, ob, ob->
pose, arm)) {
1033 Bone *bone = pchan.bone_get(*ob);
1034 if (bone !=
nullptr) {
1049 if (!
STREQ(name_flip, name)) {
1059 switch (
pose->iksolver) {
1072 const bool copy_constraints)
1075 ListBaseT<bConstraint> listb;
1082 outPose = MEM_new<bPose>(
"pose");
1083 outPose->
runtime = MEM_new<bke::bPoseRuntime>(__func__);
1121 if (copy_constraints) {
1146 if (copy_constraints) {
1178 pose->ikparam = MEM_new<bItasc>(
"itasc");
1191 if ((
data->rootbone == 0) || (
data->rootbone > level)) {
1198 for (
Bone &bone : pchan->bone_get(*ob)->childbase) {
1227 float r_pose_orientation[3][3])
1242 float r_pose_space_pivot[3])
1254 if (
pose->runtime->chanhash.is_empty()) {
1256 pose->runtime->chanhash.add_overwrite(pchan.
name, &pchan);
1263 pose->runtime->chanhash.clear();
1275 if (pchan.
custom_tx == unlinked_pchan) {
1282 bool (*filter_fn)(
const char *bone_name,
void *user_data),
1289 for (pchan = ob->
pose->
chanbase.first(); pchan; pchan = pchan_next) {
1290 pchan_next = pchan->
next;
1292 if (filter_fn(pchan->
name, user_data)) {
1304 ListBaseT<bConstraintTarget> targets = {
nullptr,
nullptr};
1308 if (ct.subtarget[0]) {
1309 if (filter_fn(ct.subtarget, user_data)) {
1311 ct.subtarget[0] = 0;
1353 pchan->
mpath =
nullptr;
1360 pchan->
prop =
nullptr;
1408 if (!
pose->chanbase.is_empty()) {
1413 pose->chanbase.free_no_destruct();
1418 pose->runtime->chan_array.reinitialize(0);
1432 if (
pose->agroups.first()) {
1433 pose->agroups.free_no_destruct();
1440 if (
pose->ikparam) {
1441 MEM_delete(
pose->ikparam);
1444 MEM_delete(
pose->runtime);
1445 pose->runtime =
nullptr;
1498 pchan->
prop =
nullptr;
1500 if (pchan_from->
prop) {
1556 if (
data->rootbone < 0) {
1563 Bone *parbone = chain_tip->bone_get(pose_ob);
1569 parbone = parbone->
parent;
1580 chain_bone = chain_bone->
parent;
1623 name =
DATA_(
"Group");
1626 grp = MEM_new<bActionGroup>(
"PoseGroup");
1631 pose->active_group =
pose->agroups.count();
1661 if (
pose->active_group >= idx) {
1662 const bool has_groups = !
pose->agroups.is_empty();
1663 pose->active_group--;
1664 if (
pose->active_group == 0 && has_groups) {
1665 pose->active_group = 1;
1667 else if (
pose->active_group < 0 || !has_groups) {
1668 pose->active_group = 0;
1693 memset(
pose->stride_offset, 0,
sizeof(
pose->stride_offset));
1694 memset(
pose->cyclic_offset, 0,
sizeof(
pose->cyclic_offset));
1697 if (selected_bones_only && pchan.bone_get(pose_ob) !=
nullptr &&
1751 if (to ==
nullptr || from ==
nullptr) {
1753 &
LOG,
"Pose copy error, pose to:%p from:%p", (
void *)to, (
void *)from);
1764 if (pchanto !=
nullptr) {
1784 const int32_t action_slot_handle,
1785 const char groupname[],
1792 if (groupname && groupname[0]) {
1794 Action &action = act->wrap();
1802 workob->
runtime = &workob_runtime;
1830 if (
pose->chanbase.first() !=
pose->chanbase.last()) {
1867 workob->
adt =
nullptr;
1875 if (
pose ==
nullptr) {
1883 if (!session_uid->is_generated()) {
1884 printf(
"Pose channel %s does not have UID generated.\n", pchan.
name);
1888 if (!used_uids.
add(*session_uid)) {
1889 printf(
"Pose channel %s has duplicate UID generated.\n", pchan.
name);
1927 if (
pose->ikparam) {
1949 pose->runtime = MEM_new<bke::bPoseRuntime>(__func__);
1974 pchan.
iktree.clear_no_delete();
1975 pchan.
siktree.clear_no_delete();
1982 if (
pose->ikparam !=
nullptr) {
1989 pose->ikparam =
nullptr;
2003 bool rebuild =
false;
2023 if (pchan.
name[0] ==
'\0') {
Functions and classes to work with Actions.
Functions for backward compatibility with the legacy Action API.
Functions to deal with Armatures.
C++ functions to deal with Armature collections (i.e. the successor of bone layers).
C++ part of the BoneColor DNA struct.
Versioning of old animation data. Most animation versioning code lives in the versioning_xxx....
Blender kernel action and pose functionality.
#define IDP_BlendDataRead(reader, prop)
#define BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL(data_, func_call_)
#define BKE_LIB_FOREACHID_PROCESS_IDSUPER(data_, id_super_, cb_flag_)
#define BKE_LIB_FOREACHID_PROCESS_ID(data_, id_, cb_flag_)
General operations, lookup, etc. for blender objects.
#define STRNCPY_UTF8(dst, src)
#define BLO_read_struct_list(reader, struct_name, list)
#define BLO_read_struct(reader, struct_name, ptr_p)
#define BLT_I18NCONTEXT_ID_ACTION
#define CLOG_ERROR(clg_ref,...)
ID and Library types, which are fundamental for SDNA.
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
#define INIT_DEFAULT_STRUCT_AFTER(struct_dst, member)
#define BLI_assert_msg(a, msg)
constexpr const T * data() const
constexpr const T & first() const
constexpr int64_t size() const
constexpr const T & last(const int64_t n=0) const
constexpr IndexRange index_range() const
constexpr bool is_empty() const
Span< const Slot * > slots() const
const Layer * layer(int64_t index) const
const Slot * slot(int64_t index) const
Span< const Layer * > layers() const
Span< const StripKeyframeData * > strip_keyframe_data() const
const ThemeWireColor * effective_color() const
Span< const bActionGroup * > channel_groups() const
const bActionGroup * channel_group_find(StringRef name) const
Span< const FCurve * > fcurves() const
Layer * duplicate_with_shallow_strip_copies(StringRefNull allocation_name) const
static void users_invalidate(Main &bmain)
Span< const Channelbag * > channelbags() const
static Strip & create(Action &owning_action, const Strip::Type type)
bool action_is_layered(const bAction &dna_action)
void assert_baklava_phase_1_invariants(const Action &action)
const animrig::Channelbag * channelbag_for_action_slot(const Action &action, slot_handle_t slot_handle)
const BoneColor & ANIM_bonecolor_posebone_get(bke::PChanBoneConst pchanbone)
bool bone_is_selected(const bArmature *armature, const Bone *bone)
std::unique_ptr< IDProperty, IDPropertyDeleter > create(StringRef prop_name, int32_t value, eIDPropertyFlag flags={})
Allocate a new IDProperty of type IDP_INT, set its name and value.
void blend_read_data(struct BlendDataReader *reader, struct bMotionPath *mpath)
struct bMotionPath * copy(const struct bMotionPath *mpath_src)
void free(struct bMotionPath *mpath)
void blend_write(struct BlendWriter *writer, struct bMotionPath *mpath)
static void write_strips(BlendWriter *writer, Span< animrig::Strip * > strips)
static void action_blend_read_data(BlendDataReader *reader, ID *id)
static void action_init_data(ID *action_id)
static void action_blend_write_clear_legacy_fcurves_listbase(ListBaseT< FCurve > &listbase)
static void read_layers(BlendDataReader *reader, animrig::Action &action)
static void write_layers(BlendWriter *writer, Span< animrig::Layer * > layers)
static void action_copy_data(Main *, std::optional< Library * >, ID *id_dst, const ID *id_src, const int flag)
static void read_slots(BlendDataReader *reader, animrig::Action &action)
static void read_strip_keyframe_data_array(BlendDataReader *reader, animrig::Action &action)
static void read_strip_keyframe_data(BlendDataReader *reader, animrig::StripKeyframeData &strip_keyframe_data)
static void action_blend_write_make_legacy_fcurves_listbase(ListBaseT< FCurve > &listbase, const Span< FCurve * > fcurves)
static void write_slots(BlendWriter *writer, Span< animrig::Slot * > slots)
PChanBoneT< const bPoseChannel, const Bone > PChanBoneConst
static IDProperty * action_asset_type_property(const bAction *action)
static void write_strip_keyframe_data(BlendWriter *writer, animrig::StripKeyframeData &strip_keyframe_data)
static void action_asset_metadata_ensure(void *asset_ptr, AssetMetaData *asset_data)
static void action_blend_write(BlendWriter *writer, ID *id, const void *id_address)
static void write_strip_keyframe_data_array(BlendWriter *writer, Span< animrig::StripKeyframeData * > strip_keyframe_data_array)
static void action_free_data(ID *id)
static void read_channelbag(BlendDataReader *reader, animrig::Channelbag &channelbag)
static void action_blend_write_make_legacy_channel_groups_listbase(ListBaseT< bActionGroup > &listbase, const Span< bActionGroup * > channel_groups)
static void write_channelbag(BlendWriter *writer, animrig::Channelbag &channelbag)
static void action_blend_write_clear_legacy_channel_groups_listbase(ListBaseT< bActionGroup > &listbase)
static void action_foreach_id(ID *id, LibraryForeachIDData *data)
static AssetTypeInfo AssetType_AC
BLI_INLINE Texture * wrap(MTLTexture *texture)
bPoseChannel * BKE_pose_channel_ensure(bPose *pose, const char *name) ATTR_NONNULL(2)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void BKE_constraints_copy_ex(ListBaseT< bConstraint > *dst, const ListBaseT< bConstraint > *src, int flag, bool do_extern)
void BKE_copy_time_markers(ListBaseT< TimeMarker > &markers_dst, const ListBaseT< TimeMarker > &markers_src, int flag)
Main * BKE_lib_query_foreachid_process_main_get(const LibraryForeachIDData *data)
bPoseChannel * BKE_pose_channel_active(Object *ob, bool check_bonecoll)
void IDP_FreeProperty_ex(IDProperty *prop, bool do_id_user)
void BKE_previewimg_id_free(ID *id)
void BKE_pose_tag_recalc(Main *bmain, bPose *pose) ATTR_NONNULL(1
void BKE_time_markers_blend_read(BlendDataReader *reader, ListBaseT< TimeMarker > &markers)
void BKE_asset_metadata_idprop_ensure(AssetMetaData *asset_data, IDProperty *prop)
void void bool BKE_pose_copy_result(bPose *to, bPose *from)
@ POSE_CONSTRAINTS_NEED_UPDATE_FLAGS
@ POSE_CONSTRAINTS_TIMEDEPEND
void action_group_colors_set(bActionGroup *grp, const BoneColor *color)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void BKE_previewimg_blend_read(BlendDataReader *reader, PreviewImage *prv)
void * BLO_read_struct_by_name_array(BlendDataReader *reader, StringRef struct_name, int64_t items_num, const void *old_address)
void BKE_constraint_targets_flush(struct bConstraint *con, ListBaseT< bConstraintTarget > *targets, bool no_copy)
void copy_m3_m4(float m1[3][3], const float m2[4][4])
void BKE_pose_channel_free_bbone_cache(bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void BLO_read_pointer_array_and_validate_size(BlendDataReader *reader, T **ptr_p, SizeT *array_size)
@ CONSTRAINT_TYPE_KINEMATIC
@ CONSTRAINT_TYPE_SPLINEIK
@ CONSTRAINT_TYPE_FOLLOWPATH
PointerRNA RNA_id_pointer_create(ID *id)
void BKE_pose_free_ex(bPose *pose, bool do_id_user)
void BKE_pose_free_data(bPose *pose) ATTR_NONNULL(1)
void void void void void void BLI_duplicatelist(ListBase *dst, const ListBase *src) ATTR_NONNULL(1
void BKE_fcurves_free(ListBaseT< FCurve > *list)
void BKE_pose_channels_hash_free(bPose *pose) ATTR_NONNULL(1)
void BKE_previewimg_blend_write(BlendWriter *writer, const PreviewImage *prv)
IDProperty * IDP_CopyProperty(const IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BKE_pose_free(bPose *pose)
static bool transform_follows_custom_tx(const bArmature *arm, const bPoseChannel *pchan)
MINLINE void rgba_uchar_args_set(unsigned char col[4], unsigned char r, unsigned char g, unsigned char b, unsigned char a)
void IDP_BlendWrite(BlendWriter *writer, const IDProperty *prop)
void BKE_pose_tag_update_constraint_flags(bPose *pose) ATTR_NONNULL(1)
void IDP_foreach_property(IDProperty *id_property_root, int type_filter, FunctionRef< void(IDProperty *id_property)> callback)
void void BKE_pose_copy_pchan_result(bPoseChannel *pchanto, const bPoseChannel *pchanfrom) ATTR_NONNULL(1
void * BLI_findstring(const ListBase *listbase, const char *id, int offset) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BKE_fcurve_blend_read_data_listbase(BlendDataReader *reader, ListBaseT< FCurve > *fcurves)
void BKE_pose_remove_group(bPose *pose, bActionGroup *grp, int index) ATTR_NONNULL(1)
bool ANIM_bone_in_visible_collection(const bArmature *armature, const Bone *bone)
void BKE_pose_channels_hash_ensure(bPose *pose) ATTR_NONNULL(1)
static void pose_channels_remove_internal_links(Object *ob, bPoseChannel *unlinked_pchan)
bAction * BKE_action_add(Main *bmain, const char name[])
void BKE_fcurve_blend_write_data(BlendWriter *writer, FCurve *fcu)
void BIK_clear_data(struct bPose *pose)
void BKE_fcurve_blend_read_data(BlendDataReader *reader, FCurve *fcu)
void BKE_pose_channel_runtime_reset(bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void BKE_fcurve_blend_write_listbase(BlendWriter *writer, ListBaseT< FCurve > *fcurves)
LibraryForeachIDFlag BKE_lib_query_foreachid_process_flags_get(const LibraryForeachIDData *data)
void BKE_pose_ensure_bone_indices(const Object &pose_object)
void BKE_pose_channel_transform_orientation(const bArmature *arm, const bPoseChannel *pose_bone, float r_pose_orientation[3][3])
void BKE_id_blend_write(BlendWriter *writer, ID *id)
@ LIB_ID_CREATE_NO_USER_REFCOUNT
void animsys_evaluate_action_group(PointerRNA *ptr, bAction *act, bActionGroup *agrp, const AnimationEvalContext *anim_eval_context)
void unit_axis_angle(float axis[3], float *angle)
void * BLI_findlink(const ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void 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 BLI_uniquename(const ListBase *list, void *vlink, const char *defname, char delim, int name_offset, size_t name_maxncpy) ATTR_NONNULL(1
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BKE_pose_channel_free(bPoseChannel *pchan) ATTR_NONNULL(1)
void DEG_id_tag_update_ex(Main *bmain, ID *id, unsigned int flags)
void BKE_pose_channel_transform_location(const bArmature *arm, const bPoseChannel *pose_bone, float r_pose_space_pivot[3])
bPoseChannel * BKE_pose_channel_get_mirrored(const bPose *pose, const char *name) ATTR_WARN_UNUSED_RESULT
void BKE_pose_channels_free(bPose *pose) ATTR_NONNULL(1)
void BKE_pose_copy_data_ex(bPose **dst, const bPose *src, int flag, bool copy_constraints)
void copy_qt_qt(float q[4], const float a[4])
bool BKE_pose_channels_is_valid(const bPose *pose) ATTR_WARN_UNUSED_RESULT
BMesh const char void * data
void BKE_constraints_copy(ListBaseT< bConstraint > *dst, const ListBaseT< bConstraint > *src, bool do_extern)
void BKE_time_markers_blend_write(BlendWriter *writer, ListBaseT< TimeMarker > &markers)
const char * BKE_pose_ikparam_get_name(bPose *pose) ATTR_WARN_UNUSED_RESULT
FCurve * BKE_fcurve_copy(const FCurve *fcu)
void BLI_freelinkN(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BKE_object_workob_clear(Object *workob)
void void BKE_pose_blend_write(BlendWriter *writer, bPose *pose) ATTR_NONNULL(1
void BKE_pose_channel_free_ex(bPoseChannel *pchan, bool do_id_user) ATTR_NONNULL(1)
int BKE_constraint_targets_get(struct bConstraint *con, ListBaseT< bConstraintTarget > *r_targets)
void unit_m4(float m[4][4])
void BKE_pose_channels_remove(Object *ob, bool(*filter_fn)(const char *bone_name, void *user_data), void *user_data) ATTR_NONNULL(1
void BKE_pose_channel_session_uid_generate(bPoseChannel *pchan)
void BKE_pose_update_constraint_flags(Object &pose_ob)
SessionUID BLI_session_uid_generate()
MINLINE void copy_v4_v4_uchar(unsigned char r[4], const unsigned char a[4])
MINLINE void zero_v3(float r[3])
void BKE_constraint_blend_read_data(struct BlendDataReader *reader, struct ID *id_owner, ListBaseT< bConstraint > *lb)
@ ITASC_INITIAL_REITERATION
static bool pose_channel_in_IK_chain(Object *ob, bPoseChannel *pchan, int level)
void BKE_pose_channel_copy_data(bPoseChannel *pchan, const bPoseChannel *pchan_from)
void BKE_pose_channel_runtime_reset_on_copy(bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void BKE_pose_remove_group_index(bPose *pose, int index) ATTR_NONNULL(1)
Main * BLO_read_lib_get_main(BlendLibReader *reader)
void BKE_pose_copy_data(bPose **dst, const bPose *src, bool copy_constraints)
void BKE_animsys_evaluate_animdata(ID *id, AnimData *adt, const AnimationEvalContext *anim_eval_context, eAnimData_Recalc recalc, bool flush_to_original)
void BKE_previewimg_id_copy(ID *new_id, const ID *old_id)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
bool BKE_pose_channel_in_IK_chain(Object *ob, bPoseChannel *pchan)
MINLINE void copy_v3_fl(float r[3], float f)
void void void void BKE_pose_blend_read_after_liblink(BlendLibReader *reader, Object *ob, bPose *pose) ATTR_NONNULL(1
void IDP_FreeProperty(IDProperty *prop)
void void void BKE_pose_blend_read_data(BlendDataReader *reader, ID *id_owner, bPose *pose) ATTR_NONNULL(1
void BKE_pose_channels_free_ex(bPose *pose, bool do_id_user) ATTR_NONNULL(1)
@ POSE_TRANSFORM_AT_CUSTOM_TX
void BKE_free_time_markers(ListBaseT< TimeMarker > &markers, bool do_id_user)
ID_Type GS(const char *name)
bool BLO_read_lib_is_undo(BlendLibReader *reader)
void DEG_relations_tag_update(Main *bmain)
bPoseChannel * BKE_pose_channel_active_if_bonecoll_visible(Object *ob) ATTR_WARN_UNUSED_RESULT
void BKE_pose_channel_runtime_free(bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
bool BKE_pose_is_bonecoll_visible(const bArmature *arm, const bPoseChannel *pchan) ATTR_WARN_UNUSED_RESULT
void void BKE_pose_free_data_ex(bPose *pose, bool do_id_user) ATTR_NONNULL(1)
void BKE_constraints_free_ex(ListBaseT< bConstraint > *list, bool do_id_user)
void action_group_colors_sync(bActionGroup *grp)
void copy_m4_m4(float m1[4][4], const float m2[4][4])
LibraryForeachIDCallbackFlag
IDProperty * IDP_CopyProperty_ex(const IDProperty *prop, int flag) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BKE_pose_rest(Object &pose_ob, bool selected_bones_only)
void BKE_constraint_blend_write(struct BlendWriter *writer, ListBaseT< bConstraint > *conlist)
bPoseChannel * BKE_pose_channel_active_or_first_selected(Object *ob) ATTR_WARN_UNUSED_RESULT
void BKE_pose_check_uids_unique_and_report(const bPose *pose)
void * BKE_id_new(Main *bmain, short type, const char *name)
bPoseChannel * BKE_pose_channel_find_name(const bPose *pose, const char *name)
void BKE_pose_ikparam_init(bPose *pose) ATTR_NONNULL(1)
void BKE_pose_itasc_init(bItasc *itasc)
void action_group_colors_set_from_posebone(bActionGroup *grp, bke::PChanBoneConst pchanbone)
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
size_t BLI_string_flip_side_name(char *name_dst, const char *name_src, bool strip_number, size_t name_dst_maxncpy) ATTR_NONNULL(1
bActionGroup * BKE_pose_add_group(bPose *pose, const char *name) ATTR_NONNULL(1)
@ IDTYPE_FLAGS_NO_ANIMDATA
struct FCurve ** fcurve_array
struct bActionGroup ** group_array
struct ActionChannelbag ** channelbag_array
void write_pointer_array(int64_t num, const void *data)
void write_struct_by_name(const char *struct_name, const void *data, BlendStructWriterFn fn=nullptr)
void write_id_struct(const void *id_address, const T *id, BlendStructWriterTypedFn< T > fn=nullptr)
void write_struct_cast(const void *data, BlendStructWriterTypedFn< T > fn=nullptr)
void write_struct(const T *data, BlendStructWriterTypedFn< T > fn=nullptr)
bool is_action_slot_to_id_map_dirty
const c_style_mat & ptr() const
bke::ObjectRuntime * runtime
ListBaseT< bConstraint > constraints
struct bActionGroup * next
ListBaseT< FCurve > channels
struct ActionChannelbag * channelbag
struct ActionSlot ** slot_array
int strip_keyframe_data_array_num
struct ActionStripKeyframeData ** strip_keyframe_data_array
ListBaseT< FCurve > curves
ListBaseT< bActionGroup > groups
ListBaseT< struct TimeMarker > markers
struct ActionLayer ** layer_array
ePose_IKSolverType iksolver
struct Mat4 * bbone_rest_mats
struct DualQuat * bbone_dual_quats
struct Mat4 * bbone_pose_mats
struct Mat4 * bbone_deform_mats
struct bPoseChannel_BBoneSegmentBoundary * bbone_segment_boundaries
float custom_scale_xyz[3]
struct bPoseChannel_Runtime runtime
struct bPoseChannel * parent
ListBaseT< struct PoseTree > iktree
bPoseChannelDrawData * draw_data
struct bPoseChannel * child
ListBaseT< struct bConstraint > constraints
struct bPoseChannel * custom_tx
struct bPoseChannel * next
struct bPoseChannel * bbone_next
ePchan_ConstFlag constflag
IDProperty * system_properties
ListBaseT< struct tSplineIK_Tree > siktree
float custom_shape_wire_width
float custom_rotation_euler[3]
struct bPoseChannel * bbone_prev
float custom_translation[3]
bke::bPoseRuntime * runtime
ePose_IKSolverType iksolver
ListBaseT< bPoseChannel > chanbase
ListBaseT< struct bActionGroup > agroups
Map< StringRef, bPoseChannel * > chanhash