Blender V5.3
BKE_armature.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
10
11#include <optional>
12
13#include "BLI_bounds_types.hh"
14#include "BLI_function_ref.hh"
17#include "BLI_mutex.hh"
18#include "BLI_set.hh"
19
20#include "DNA_armature_types.h"
21#include "DNA_listBase.h"
22
23#include "BKE_pose.hh"
24
25namespace blender {
26
27struct bDeformGroup;
28struct BMesh;
29struct Bone;
30struct Depsgraph;
31struct IDProperty;
32struct Main;
33struct Mesh;
34struct Object;
35struct PoseTree;
36struct Scene;
37struct bArmature;
38struct bConstraint;
39struct bPose;
40struct bPoseChannel;
41struct MDeformVert;
42
43enum eRotationModes : short;
44
45struct EditBone {
46 EditBone *next = nullptr, *prev = nullptr;
48 IDProperty *prop = nullptr;
55 EditBone *parent = nullptr;
56 char name[/*MAXBONENAME*/ 64] = "";
63 float roll = 0.0f;
64
66 float head[3] = {};
67 float tail[3] = {};
74 int layer = 0;
75 int drawtype = 0; /* eArmature_Drawtype */
77
78 /* Envelope distance & weight */
79 float dist = 0, weight = 0;
81 float xwidth = 0, length = 0, zwidth = 0;
82 float rad_head = 0, rad_tail = 0;
83
84 /* Bendy-Bone parameters */
85 short segments = 0;
86 float roll1 = 0, roll2 = 0;
87 float curve_in_x = 0, curve_in_z = 0;
88 float curve_out_x = 0, curve_out_z = 0;
89 float ease1 = 0, ease2 = 0;
90 float scale_in[3] = {}, scale_out[3] = {};
91
93 float oldlength = 0;
94
107
108 /* Used for display */
110 float disp_mat[4][4] = {};
112 float disp_tail_mat[4][4] = {};
114 float disp_bbone_mat[/*MAX_BBONE_SUBDIV*/ 32][4][4] = {};
115
118
119 BoneColor color; /* MUST be named the same as in bPoseChannel and Bone structs. */
120 ListBaseT<BoneCollectionReference> bone_collections = {};
121
122 /* Used to store temporary data */
123 union {
124 EditBone *ebone = nullptr;
125 Bone *bone;
126 void *p;
127 int i;
129};
130
133
134 bConstraint *con; /* the constraint of this target */
135 int tip; /* index of tip pchan in PoseTree */
136};
137
138struct PoseTree {
140
141 int type; /* type of IK that this serves (CONSTRAINT_TYPE_KINEMATIC or ..._SPLINEIK) */
142 int totchannel; /* number of pose channels */
143
144 ListBaseT<PoseTarget> targets; /* list of targets of the tree */
145 bPoseChannel **pchan; /* array of pose channels */
146 int *parent; /* and their parents */
147
148 float (*basis_change)[3][3]; /* basis change result from solver */
149 int iterations; /* iterations from the constraint */
150 int stretch; /* disable stretching */
151};
152
153/* Core armature functionality. */
154
155bArmature *BKE_armature_add(Main *bmain, const char *name);
157int BKE_armature_bonelist_count(const ListBaseT<Bone> *lb);
158void BKE_armature_bonelist_free(ListBaseT<Bone> *lb, bool do_id_user);
159void BKE_armature_editbonelist_free(ListBaseT<EditBone> *lb, bool do_id_user);
160
161void BKE_armature_copy_bone_transforms(bArmature *armature_dst, const bArmature *armature_src);
162
163void BKE_armature_transform(bArmature *arm, const float mat[4][4], bool do_props);
164
168std::optional<Bounds<float3>> BKE_armature_min_max(const Object *ob);
169
170using ForeachBoneFn = FunctionRef<void(int index, const Bone &bone)>;
174void BKE_armature_foreach_bone(const bArmature &armature, ForeachBoneFn callback);
175
191void BKE_pchan_minmax(const Object *ob,
192 bke::PChanBoneConst pchanbone,
193 bool use_empty_drawtype,
194 float3 &r_min,
195 float3 &r_max);
208std::optional<Bounds<float3>> BKE_pose_minmax(const Object *ob, bool use_select);
209
218bool bone_autoside_name(char name[64], int strip_number, short axis, float head, float tail);
219
227Bone *BKE_armature_find_bone_name(bArmature *arm, const char *name);
228
231
232bool BKE_armature_bone_flag_test_recursive(const Bone *bone, int flag);
233
238 const float3 &head,
239 const float3 &tail,
240 float radius_head,
241 float radius_tail,
242 float falloff_distance);
243
253void BKE_armature_where_is_bone(Bone *bone, const Bone *bone_parent, bool use_recursion);
263void BKE_pose_channels_clear_with_null_bone(Object *armature_ob, bool do_id_user);
271void BKE_pose_rebuild(Main *bmain, Object *ob, bArmature *arm, bool do_id_user);
277void BKE_pose_ensure(Main *bmain, Object *ob, bArmature *arm, bool do_id_user);
278
293void BKE_pose_ensure_bone_indices(const Object &pose_object);
294
299void BKE_pose_where_is(Depsgraph *depsgraph, Scene *scene, Object *ob);
306void BKE_pose_where_is_bone(Depsgraph *depsgraph,
307 Scene *scene,
308 Object *ob,
309 bPoseChannel *pchan,
310 float ctime,
311 bool do_extra);
316
317void vec_roll_to_mat3(const float vec[3], float roll, float r_mat[3][3]);
318
322void vec_roll_to_mat3_normalized(const float nor[3], float roll, float r_mat[3][3]);
327void mat3_to_vec_roll(const float mat[3][3], float r_vec[3], float *r_roll);
332void mat3_vec_to_roll(const float mat[3][3], const float vec[3], float *r_roll);
333
334/* Common Conversions Between Coordinate Spaces */
335
339void BKE_armature_mat_world_to_pose(Object *ob, const float inmat[4][4], float outmat[4][4]);
345void BKE_armature_loc_world_to_pose(Object *ob, const float inloc[3], float outloc[3]);
352 const float inmat[4][4],
353 float outmat[4][4]);
360 const float inloc[3],
361 float outloc[3]);
366 const float inmat[4][4],
367 float outmat[4][4]);
373void BKE_armature_mat_pose_to_delta(float delta_mat[4][4],
374 float pose_mat[4][4],
375 float arm_mat[4][4]);
376
377void BKE_armature_mat_pose_to_bone_ex(Depsgraph *depsgraph,
378 Object *ob,
379 const bPoseChannel *pchan,
380 const float inmat[4][4],
381 float outmat[4][4]);
382
389void BKE_pchan_mat3_to_rot(bPoseChannel *pchan, const float mat[3][3], bool use_compat);
393void BKE_pchan_rot_to_mat3(const bPoseChannel *pchan, float r_mat[3][3]);
394
400
405void BKE_pchan_quat_to_rot(bPoseChannel &pchan, const float4 &quat);
406
411void BKE_pchan_apply_mat4(bPoseChannel *pchan, const float mat[4][4], bool use_compat);
415void BKE_pchan_to_mat4(bke::PChanBoneConst pchanbone, float r_chanmat[4][4]);
416
421void BKE_pchan_calc_mat(bke::PChanBone pchanbone);
422
427void BKE_bone_offset_matrix_get(const Bone *bone, float offs_bone[4][4]);
428
429/* Transformation inherited from the parent bone. These matrices apply the effects of
430 * HINGE/NO_SCALE/NO_LOCAL_LOCATION options over the pchan loc/rot/scale transformations. */
432 float rotscale_mat[4][4]; /* parent effect on rotation & scale pose channels */
433 float loc_mat[4][4]; /* parent effect on location pose channel */
434 float post_scale[3]; /* additional scale to apply with post-multiply */
435};
436
437/* Matrix-like algebra operations on the transform */
441 const BoneParentTransform *in2,
443
445 const float inmat[4][4],
446 float outmat[4][4]);
447
470 BoneParentTransform *r_bpt);
481 int inherit_scale_mode,
482 const float offs_bone[4][4],
483 const float parent_arm_mat[4][4],
484 const float parent_pose_mat[4][4],
485 BoneParentTransform *r_bpt);
486
494void BKE_rotMode_change_values(float quat[4],
495 float eul[3],
496 float axis[3],
497 float *angle,
498 eRotationModes oldMode,
499 eRotationModes newMode);
500
501/* B-Bone support */
502#define MAX_BBONE_SUBDIV 32
503
504struct Mat4 {
505 float mat[4][4];
506};
507
510 float length;
511
512 /* Non-uniform scale correction. */
514 float scale[3];
515
516 /* Handle control bone data. */
519
520 float prev_h[3], next_h[3];
521 float prev_mat[4][4], next_mat[4][4];
522
523 /* Control values. */
524 float ease1, ease2;
525 float roll1, roll2;
526 float scale_in[3], scale_out[3];
528};
529
531void BKE_pchan_protected_location_set(bPoseChannel *pchan, const float location[3]);
536void BKE_pchan_protected_rotation_set(bPoseChannel *pchan, const float mat[3][3]);
538void BKE_pchan_protected_scale_set(bPoseChannel *pchan, const float scale[3]);
540void BKE_pchan_protected_rotation_quaternion_set(bPoseChannel *pchan, const float quat[4]);
542void BKE_pchan_protected_rotation_euler_set(bPoseChannel *pchan, const float rotation_euler[3]);
545 const float axis[3],
546 float angle);
547
552 bPoseChannel **r_prev,
553 bPoseChannel **r_next);
558 const bArmature &armature,
559 bool rest,
560 BBoneSplineParameters *param);
561
567 const bArmature &armature,
568 bool rest,
569 bool for_deform,
570 Mat4 *result_array);
571
576 float h1[3],
577 float *r_roll1,
578 float h2[3],
579 float *r_roll2,
580 bool ease,
581 bool offsets);
587 bool for_deform,
588 Mat4 *result_array);
589
598
609 float head_tail,
610 int *r_index,
611 float *r_blend_next);
612
623 const float *co,
624 int *r_index,
625 float *r_blend_next);
626
627/* context.selected_pose_bones */
628#define FOREACH_PCHAN_SELECTED_IN_OBJECT_BEGIN(_ob, _pchan) \
629 for (bPoseChannel *_pchan = (_ob)->pose->chanbase.first(); _pchan; _pchan = _pchan->next) { \
630 if (animrig::bone_is_visible(((bArmature *)(_ob)->data), {_pchan, _pchan->bone_get(*_ob)}) && \
631 ((_pchan)->flag & POSE_SELECTED)) \
632 {
633#define FOREACH_PCHAN_SELECTED_IN_OBJECT_END \
634 } \
635 } \
636 ((void)0)
637/* context.visible_pose_bones */
638#define FOREACH_PCHAN_VISIBLE_IN_OBJECT_BEGIN(_ob, _pchan) \
639 for (bPoseChannel *_pchan = (_ob)->pose->chanbase.first(); _pchan; _pchan = _pchan->next) { \
640 if (animrig::bone_is_visible(((bArmature *)(_ob)->data), {_pchan, pchan->bone_get(*_ob)})) {
641#define FOREACH_PCHAN_VISIBLE_IN_OBJECT_END \
642 } \
643 } \
644 ((void)0)
645
646/* Evaluation helpers */
647struct bKinematicConstraint;
648struct bPose;
649struct bSplineIKConstraint;
650
651bPoseChannel *BKE_armature_ik_solver_find_root(bPoseChannel *pchan, bKinematicConstraint *data);
652bPoseChannel *BKE_armature_splineik_solver_find_root(bPoseChannel *pchan,
653 bSplineIKConstraint *data);
654
655void BKE_pose_splineik_init_tree(Scene *scene, Object *ob, float ctime);
657 Depsgraph *depsgraph, Scene *scene, Object *ob, bPoseChannel *pchan_root, float ctime);
658
659void BKE_pose_pchan_index_rebuild(bPose *pose);
660
661void BKE_pose_eval_init(Depsgraph *depsgraph, Scene *scene, Object *object);
662
663void BKE_pose_eval_init_ik(Depsgraph *depsgraph, Scene *scene, Object *object);
664
665void BKE_pose_eval_bone(Depsgraph *depsgraph, Scene *scene, Object *object, int pchan_index);
666
667void BKE_pose_constraints_evaluate(Depsgraph *depsgraph,
668 Scene *scene,
669 Object *object,
670 int pchan_index);
671
672void BKE_pose_bone_done(Depsgraph *depsgraph, Object *object, int pchan_index);
673
674void BKE_pose_eval_bbone_segments(Depsgraph *depsgraph, Object *object, int pchan_index);
675
676void BKE_pose_iktree_evaluate(Depsgraph *depsgraph,
677 Scene *scene,
678 Object *object,
679 int rootchan_index);
680
681void BKE_pose_splineik_evaluate(Depsgraph *depsgraph,
682 Scene *scene,
683 Object *object,
684 int rootchan_index);
685
686void BKE_pose_eval_done(Depsgraph *depsgraph, Object *object);
687
688void BKE_pose_eval_cleanup(Depsgraph *depsgraph, Scene *scene, Object *object);
689
690/* -------------------------------------------------------------------- */
693
694/* Note that we could have a #BKE_armature_deform_coords that doesn't take object data
695 * currently there are no callers for this though. */
696
698 const Object &ob_target,
699 const ListBaseT<bDeformGroup> *defbase,
700 MutableSpan<float3> vert_coords,
701 std::optional<Span<float3>> vert_coords_prev,
702 std::optional<MutableSpan<float3x3>> vert_deform_mats,
703 Span<MDeformVert> dverts,
704 int deformflag,
705 StringRefNull defgrp_name);
706
708 const Object &ob_target,
709 MutableSpan<float3> vert_coords,
710 std::optional<Span<float3>> vert_coords_prev,
711 std::optional<MutableSpan<float3x3>> vert_deform_mats,
712 int deformflag,
713 StringRefNull defgrp_name,
714 const Mesh *me_target);
715
717 const Object &ob_arm,
718 const Object &ob_target,
719 MutableSpan<float3> vert_coords,
720 std::optional<Span<float3>> vert_coords_prev,
721 std::optional<MutableSpan<float3x3>> vert_deform_mats,
722 int deformflag,
723 StringRefNull defgrp_name,
724 const BMesh &bm_target);
725
727
728namespace bke {
729
769
772 bool no_bones_selected = true;
773};
774
777 SelectedBoneCallback callback);
778
784
786}; // namespace bke
787
788} // namespace blender
These structs are the foundation for all linked lists in the library system.
SIMD_FORCE_INLINE btScalar angle(const btVector3 &v) const
Return the angle between this and another vector.
Definition btVector3.h:356
Definition scene.h:133
#define position
float3x3 scale(float3x3 mat, float2 scale)
FunctionRef< void(Bone *bone)> SelectedBoneCallback
PChanBoneT< bPoseChannel, Bone > PChanBone
Definition BKE_pose.hh:88
SelectedBonesResult BKE_armature_find_selected_bones(const bArmature *armature, SelectedBoneCallback callback)
Set< std::string > BoneNameSet
PChanBoneT< const bPoseChannel, const Bone > PChanBoneConst
Definition BKE_pose.hh:89
BoneNameSet BKE_armature_find_selected_bone_names(const bArmature *armature)
BoneNameSet BKE_pose_channel_find_selected_names(const Object *object)
BMesh Iterators.
void mat3_vec_to_roll(const float mat[3][3], const float vec[3], float *r_roll)
void BKE_bone_parent_transform_combine(const BoneParentTransform *in1, const BoneParentTransform *in2, BoneParentTransform *result)
void BKE_pose_eval_bbone_segments(Depsgraph *depsgraph, Object *object, int pchan_index)
void BKE_pchan_calc_mat(bke::PChanBone pchanbone)
bArmature * BKE_armature_from_object(Object *ob)
unsigned __int64 uint64_t
Definition BKE_text.h:91
void BKE_pchan_mat3_to_rot(bPoseChannel *pchan, const float mat[3][3], bool use_compat)
bArmature * BKE_armature_add(Main *bmain, const char *name)
void vec_roll_to_mat3(const float vec[3], float roll, float r_mat[3][3])
void BKE_pose_rebuild(Main *bmain, Object *ob, bArmature *arm, bool do_id_user)
void BKE_pose_eval_cleanup(Depsgraph *depsgraph, Scene *scene, Object *object)
void mat3_to_vec_roll(const float mat[3][3], float r_vec[3], float *r_roll)
void BKE_pose_eval_init_ik(Depsgraph *depsgraph, Scene *scene, Object *object)
void BKE_pose_ensure(Main *bmain, Object *ob, bArmature *arm, bool do_id_user)
void BKE_armature_foreach_bone(const bArmature &armature, ForeachBoneFn callback)
void BKE_pchan_protected_rotation_quaternion_set(bPoseChannel *pchan, const float quat[4])
void BKE_pchan_bbone_handles_get(bke::PChanBoneConst pchanbone, bPoseChannel **r_prev, bPoseChannel **r_next)
void BKE_pchan_bbone_deform_clamp_segment_index(const Bone &bone, float head_tail, int *r_index, float *r_blend_next)
void BKE_pose_where_is_bone(Depsgraph *depsgraph, Scene *scene, Object *ob, bPoseChannel *pchan, float ctime, bool do_extra)
void BKE_pchan_protected_location_set(bPoseChannel *pchan, const float location[3])
std::optional< Bounds< float3 > > BKE_pose_minmax(const Object *ob, bool use_select)
void BKE_pose_eval_init(Depsgraph *depsgraph, Scene *scene, Object *object)
void BKE_pose_clear_pointers(bPose *pose)
void BKE_splineik_execute_tree(Depsgraph *depsgraph, Scene *scene, Object *ob, bPoseChannel *pchan_root, float ctime)
void BKE_pchan_protected_scale_set(bPoseChannel *pchan, const float scale[3])
void BKE_pose_iktree_evaluate(Depsgraph *depsgraph, Scene *scene, Object *object, int rootchan_index)
void BKE_pchan_quat_to_rot(bPoseChannel &pchan, const float4 &quat)
void BKE_pchan_to_mat4(bke::PChanBoneConst pchanbone, float r_chanmat[4][4])
void BKE_armature_loc_world_to_pose(Object *ob, const float inloc[3], float outloc[3])
void BKE_pose_where_is(Depsgraph *depsgraph, Scene *scene, Object *ob)
std::optional< Bounds< float3 > > BKE_armature_min_max(const Object *ob)
void BKE_armature_bone_hash_free(bArmature *arm)
void BKE_pose_ensure_bone_indices(const Object &pose_object)
void BKE_armature_mat_bone_to_pose(bke::PChanBoneConst pchanbone, const float inmat[4][4], float outmat[4][4])
float distfactor_to_bone(const float3 &position, const float3 &head, const float3 &tail, float radius_head, float radius_tail, float falloff_distance)
void BKE_bone_parent_transform_apply(const BoneParentTransform *bpt, const float inmat[4][4], float outmat[4][4])
void BKE_pchan_bbone_segments_cache_copy(bPoseChannel *pchan, bPoseChannel *pchan_from)
VecBase< float, 4 > float4
void BKE_armature_editbonelist_free(ListBaseT< EditBone > *lb, bool do_id_user)
void BKE_bone_parent_transform_clear(BoneParentTransform *bpt)
void BKE_pchan_minmax(const Object *ob, bke::PChanBoneConst pchanbone, bool use_empty_drawtype, float3 &r_min, float3 &r_max)
bool bone_autoside_name(char name[64], int strip_number, short axis, float head, float tail)
void BKE_pchan_rot_to_mat3(const bPoseChannel *pchan, float r_mat[3][3])
void BKE_pchan_bbone_spline_setup(bke::PChanBone pchanbone, const bArmature &armature, bool rest, bool for_deform, Mat4 *result_array)
void BKE_pchan_protected_rotation_set(bPoseChannel *pchan, const float mat[3][3])
void BKE_pose_pchan_index_rebuild(bPose *pose)
void BKE_pose_constraints_evaluate(Depsgraph *depsgraph, Scene *scene, Object *object, int pchan_index)
void BKE_bone_parent_transform_calc_from_matrices(int bone_flag, int inherit_scale_mode, const float offs_bone[4][4], const float parent_arm_mat[4][4], const float parent_pose_mat[4][4], BoneParentTransform *r_bpt)
void BKE_armature_mat_pose_to_bone(bke::PChanBoneConst pchanbone, const float inmat[4][4], float outmat[4][4])
void BKE_pchan_bbone_deform_segment_index(bke::PChanBoneConst pchanbone, const float *co, int *r_index, float *r_blend_next)
float4 BKE_pchan_rot_to_quat(const bPoseChannel &pchan)
BMesh const char void * data
void BKE_armature_loc_pose_to_bone(bke::PChanBoneConst pchanbone, const float inloc[3], float outloc[3])
int BKE_pchan_bbone_spline_compute(BBoneSplineParameters *param, bool for_deform, Mat4 *result_array)
void BKE_pchan_apply_mat4(bPoseChannel *pchan, const float mat[4][4], bool use_compat)
void BKE_armature_deform_coords_with_curves(const Object &ob_arm, const Object &ob_target, const ListBaseT< bDeformGroup > *defbase, MutableSpan< float3 > vert_coords, std::optional< Span< float3 > > vert_coords_prev, std::optional< MutableSpan< float3x3 > > vert_deform_mats, Span< MDeformVert > dverts, int deformflag, StringRefNull defgrp_name)
void BKE_pose_channels_clear_with_null_bone(Object *armature_ob, bool do_id_user)
void BKE_bone_parent_transform_invert(BoneParentTransform *bpt)
void BKE_pchan_protected_rotation_euler_set(bPoseChannel *pchan, const float rotation_euler[3])
void BKE_pchan_bbone_spline_params_get(bke::PChanBoneConst pchanbone, const bArmature &armature, bool rest, BBoneSplineParameters *param)
void BKE_armature_where_is(bArmature *arm)
void BKE_armature_mat_world_to_pose(Object *ob, const float inmat[4][4], float outmat[4][4])
void BKE_armature_deform_coords_with_mesh(const Object &ob_arm, const Object &ob_target, MutableSpan< float3 > vert_coords, std::optional< Span< float3 > > vert_coords_prev, std::optional< MutableSpan< float3x3 > > vert_deform_mats, int deformflag, StringRefNull defgrp_name, const Mesh *me_target)
void BKE_armature_where_is_bone(Bone *bone, const Bone *bone_parent, bool use_recursion)
void BKE_armature_mat_pose_to_bone_ex(Depsgraph *depsgraph, Object *ob, const bPoseChannel *pchan, const float inmat[4][4], float outmat[4][4])
void BKE_armature_mat_pose_to_delta(float delta_mat[4][4], float pose_mat[4][4], float arm_mat[4][4])
bPoseChannel * BKE_armature_splineik_solver_find_root(bPoseChannel *pchan, bSplineIKConstraint *data)
void BKE_pose_splineik_evaluate(Depsgraph *depsgraph, Scene *scene, Object *object, int rootchan_index)
void BKE_pchan_bbone_handles_compute(const BBoneSplineParameters *param, float h1[3], float *r_roll1, float h2[3], float *r_roll2, bool ease, bool offsets)
void BKE_rotMode_change_values(float quat[4], float eul[3], float axis[3], float *angle, eRotationModes oldMode, eRotationModes newMode)
void BKE_pose_eval_bone(Depsgraph *depsgraph, Scene *scene, Object *object, int pchan_index)
void BKE_pose_eval_done(Depsgraph *depsgraph, Object *object)
void BKE_pose_where_is_bone_tail(bke::PChanBone pchanbone)
void BKE_pchan_protected_rotation_axisangle_set(bPoseChannel *pchan, const float axis[3], float angle)
void BKE_armature_bone_hash_make(bArmature *arm)
void BKE_bone_offset_matrix_get(const Bone *bone, float offs_bone[4][4])
void BKE_pchan_bbone_segments_cache_compute(bke::PChanBone pchanbone, const bArmature &armature)
std::mutex Mutex
Definition BLI_mutex.hh:51
void BKE_pchan_rebuild_bbone_handles(bPose *pose, bke::PChanBone pchanbone)
void BKE_pose_splineik_init_tree(Scene *scene, Object *ob, float ctime)
void BKE_armature_deform_coords_with_editmesh(const Object &ob_arm, const Object &ob_target, MutableSpan< float3 > vert_coords, std::optional< Span< float3 > > vert_coords_prev, std::optional< MutableSpan< float3x3 > > vert_deform_mats, int deformflag, StringRefNull defgrp_name, const BMesh &bm_target)
int BKE_armature_bonelist_count(const ListBaseT< Bone > *lb)
void BKE_armature_copy_bone_transforms(bArmature *armature_dst, const bArmature *armature_src)
void vec_roll_to_mat3_normalized(const float nor[3], float roll, float r_mat[3][3])
VecBase< float, 3 > float3
bool BKE_armature_bone_flag_test_recursive(const Bone *bone, int flag)
bPoseChannel * BKE_armature_ik_solver_find_root(bPoseChannel *pchan, bKinematicConstraint *data)
void BKE_pose_bone_done(Depsgraph *depsgraph, Object *object, int pchan_index)
void BKE_bone_parent_transform_calc_from_pchan(bke::PChanBoneConst pchanbone, BoneParentTransform *r_bpt)
Bone * BKE_armature_find_bone_name(bArmature *arm, const char *name)
void BKE_armature_bonelist_free(ListBaseT< Bone > *lb, bool do_id_user)
void BKE_armature_transform(bArmature *arm, const float mat[4][4], bool do_props)
FunctionRef< void(int index, const Bone &bone)> ForeachBoneFn
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
float disp_tail_mat[4][4]
union blender::EditBone::@252003325204232231327014100071366025164067232113 temp
float disp_bbone_mat[32][4][4]
ListBaseT< BoneCollectionReference > bone_collections
eBone_BBoneHandleFlag bbone_next_flag
eBone_BBoneMappingMode bbone_mapping_mode
float disp_mat[4][4]
eBone_BBoneFlag bbone_flag
EditBone * bbone_child
IDProperty * system_properties
eBone_InheritScaleMode inherit_scale_mode
eBone_BBoneHandleType bbone_next_type
EditBone * bbone_prev
EditBone * bbone_next
eBone_BBoneHandleFlag bbone_prev_flag
eBone_BBoneHandleType bbone_prev_type
IDProperty * prop
float mat[4][4]
float(* basis_change)[3][3]
ListBaseT< PoseTarget > targets
bPoseChannel ** pchan