31 {0,
"DEFAULT", 0,
"Default Colors",
""},
32 {1,
"THEME01", ICON_COLORSET_01_VEC,
"01 - Theme Color Set",
""},
33 {2,
"THEME02", ICON_COLORSET_02_VEC,
"02 - Theme Color Set",
""},
34 {3,
"THEME03", ICON_COLORSET_03_VEC,
"03 - Theme Color Set",
""},
35 {4,
"THEME04", ICON_COLORSET_04_VEC,
"04 - Theme Color Set",
""},
36 {5,
"THEME05", ICON_COLORSET_05_VEC,
"05 - Theme Color Set",
""},
37 {6,
"THEME06", ICON_COLORSET_06_VEC,
"06 - Theme Color Set",
""},
38 {7,
"THEME07", ICON_COLORSET_07_VEC,
"07 - Theme Color Set",
""},
39 {8,
"THEME08", ICON_COLORSET_08_VEC,
"08 - Theme Color Set",
""},
40 {9,
"THEME09", ICON_COLORSET_09_VEC,
"09 - Theme Color Set",
""},
41 {10,
"THEME10", ICON_COLORSET_10_VEC,
"10 - Theme Color Set",
""},
42 {11,
"THEME11", ICON_COLORSET_11_VEC,
"11 - Theme Color Set",
""},
43 {12,
"THEME12", ICON_COLORSET_12_VEC,
"12 - Theme Color Set",
""},
44 {13,
"THEME13", ICON_COLORSET_13_VEC,
"13 - Theme Color Set",
""},
45 {14,
"THEME14", ICON_COLORSET_14_VEC,
"14 - Theme Color Set",
""},
46 {15,
"THEME15", ICON_COLORSET_15_VEC,
"15 - Theme Color Set",
""},
47 {16,
"THEME16", ICON_COLORSET_16_VEC,
"16 - Theme Color Set",
""},
48 {17,
"THEME17", ICON_COLORSET_17_VEC,
"17 - Theme Color Set",
""},
49 {18,
"THEME18", ICON_COLORSET_18_VEC,
"18 - Theme Color Set",
""},
50 {19,
"THEME19", ICON_COLORSET_19_VEC,
"19 - Theme Color Set",
""},
51 {20,
"THEME20", ICON_COLORSET_20_VEC,
"20 - Theme Color Set",
""},
52 {-1,
"CUSTOM", 0,
"Custom Color Set",
""},
53 {0,
nullptr, 0,
nullptr,
nullptr},
56constexpr int COLOR_SETS_MAX_THEMED_INDEX = 20;
63# include <fmt/format.h>
93 ID *
id = ptr->owner_id;
100 ID *
id = ptr->owner_id;
109 ID *
id = ptr->owner_id;
122 arm->act_bone =
nullptr;
125 if (value.owner_id != &arm->id) {
126 Object *ob = id_cast<Object *>(value.owner_id);
128 if (
GS(ob->id.
name) !=
ID_OB || (ob->data != id_cast<const ID *>(arm))) {
129 printf(
"ERROR: armature set active bone - new active does not come from this armature\n");
134 arm->act_bone =
static_cast<Bone *
>(value.data);
139static void rna_Armature_act_edit_bone_set(
PointerRNA *ptr,
146 arm->act_edbone =
nullptr;
149 if (value.owner_id != &arm->id) {
153 arm->act_edbone =
static_cast<EditBone *
>(value.data);
161 if (arm->edbo ==
nullptr) {
164 "Armature '%s' not in edit mode, cannot add an editbone",
171static void rna_Armature_edit_bone_remove(
bArmature *arm,
176 if (arm->edbo ==
nullptr) {
179 "Armature '%s' not in edit mode, cannot remove an editbone",
187 "Armature '%s' does not contain bone '%s'",
194 ebone_ptr->invalidate();
203 arm->collection_array,
205 arm->collection_array_num,
209static int rna_iterator_bone_collections_all_length(
PointerRNA *ptr)
221 arm->collection_array,
223 arm->collection_root_count,
227static int rna_iterator_bone_collections_roots_length(
PointerRNA *ptr)
242static void rna_BoneCollections_active_set(
PointerRNA *ptr,
254 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
258 arm->collection_array + bcoll->child_index,
264static int rna_iterator_bone_collection_children_length(
PointerRNA *ptr)
272 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
282 if (parent_index < 0) {
290static void rna_BoneCollection_parent_set(
PointerRNA *ptr,
299 bArmature *armature = id_cast<bArmature *>(ptr->owner_id);
305 if (to_parent_index >= 0) {
307 if (to_parent_index == from_bcoll_index ||
316 armature, from_bcoll_index, -1, from_parent_index, to_parent_index);
321static int rna_BoneCollections_active_index_get(
PointerRNA *ptr)
327static void rna_BoneCollections_active_index_set(
PointerRNA *ptr,
const int bone_collection_index)
335static void rna_BoneCollections_active_index_range(
343 *
max =
max_ii(0, arm->collection_array_num - 1);
351 if (parent ==
nullptr) {
358 if (parent_index < 0) {
361 "Bone collection '%s' not found in Armature '%s'",
363 armature->id.name + 2);
372static void rna_BoneCollections_active_name_set(
PointerRNA *ptr,
const char *name)
380 const int count = arm->collection_array_num;
381 if (from < 0 || from >= count || to < 0 || to >= count ||
390static void rna_BoneCollection_name_set(
PointerRNA *ptr,
const char *name)
392 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
398static void rna_BoneCollection_is_visible_set(
PointerRNA *ptr,
const bool is_visible)
400 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
406static bool rna_BoneCollection_is_visible_effectively_get(
PointerRNA *ptr)
408 const bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
413static void rna_BoneCollection_is_solo_set(
PointerRNA *ptr,
const bool is_solo)
415 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
421static void rna_BoneCollection_is_expanded_set(
PointerRNA *ptr,
const bool is_expanded)
427static std::optional<std::string> rna_BoneCollection_path(
const PointerRNA *ptr)
430 char name_esc[
sizeof(bcoll->name) * 2];
432 return fmt::format(
"collections_all[\"{}\"]", name_esc);
447static void rna_BoneCollectionMemberships_clear(
Bone *bone)
453static bool rna_BoneCollection_is_editable_get(
PointerRNA *ptr)
460static int rna_BoneCollection_index_get(
PointerRNA *ptr)
467static int rna_BoneCollection_child_number_get(
PointerRNA *ptr)
473static void rna_BoneCollection_child_number_set(
PointerRNA *ptr,
const int new_child_number)
485 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
507 Bone *bone =
static_cast<Bone *
>(ptr->data);
524 ListBaseT<BoneCollectionReference> bone_collection_refs = ebone->
bone_collections;
529static bool rna_Armature_collections_override_apply(
Main *bmain,
535 PointerRNA *ptr_item_dst = &rnaapply_ctx.ptr_item_dst;
536 PointerRNA *ptr_item_src = &rnaapply_ctx.ptr_item_src;
539 switch (opop->operation) {
553 printf(
"Unsupported RNA override operation on armature collections, ignoring\n");
557 const bArmature *arm_src = id_cast<bArmature *>(ptr_src->owner_id);
558 bArmature *arm_dst = id_cast<bArmature *>(ptr_dst->owner_id);
562 arm_dst, arm_src, bcoll_anchor, bcoll_src);
573static std::optional<std::string> rna_BoneColor_path_posebone(
const PointerRNA *ptr)
576 const uint8_t *bcolor_ptr =
static_cast<const uint8_t *
>(ptr->data);
583 const Object *ob =
reinterpret_cast<const Object *
>(ptr->owner_id);
586 if (&checkBone.color == ptr->data) {
588 "pointer magic to find the pose bone failed (found the wrong bone)");
593 BLI_assert_msg(found,
"pointer magic to find the pose bone failed (did not find the bone)");
596 char name_esc[
sizeof(bone->name) * 2];
598 return fmt::format(
"pose.bones[\"{}\"].color", name_esc);
601static std::optional<std::string> rna_BoneColor_path_bone(
const PointerRNA *ptr)
604 const uint8_t *bcolor_ptr =
static_cast<const uint8_t *
>(ptr->data);
606 const Bone *bone =
reinterpret_cast<const Bone *
>(bone_ptr);
614 animrig::ANIM_armature_foreach_bone(&arm->bonebase, [&](
const Bone *checkBone) {
615 if (&checkBone->color == ptr->data) {
616 BLI_assert_msg(checkBone == bone,
617 "pointer magic to find the pose bone failed (found the wrong bone)");
621 BLI_assert_msg(found,
"pointer magic to find the pose bone failed (did not find the bone)");
624 char name_esc[
sizeof(bone->name) * 2];
626 return fmt::format(
"bones[\"{}\"].color", name_esc);
629static std::optional<std::string> rna_BoneColor_path_editbone(
const PointerRNA *ptr)
632 const uint8_t *bcolor_ptr =
static_cast<const uint8_t *
>(ptr->data);
634 const EditBone *bone =
reinterpret_cast<const EditBone *
>(bone_ptr);
639 const bArmature *arm =
reinterpret_cast<const bArmature *
>(ptr->owner_id);
642 for (
const EditBone &checkBone : *arm->edbo) {
643 if (&checkBone.color == ptr->data) {
645 "pointer magic to find the pose bone failed (found the wrong bone)");
650 BLI_assert_msg(found,
"pointer magic to find the pose bone failed (did not find the bone)");
653 char name_esc[
sizeof(bone->name) * 2];
655 return fmt::format(
"bones[\"{}\"].color", name_esc);
658static std::optional<std::string> rna_BoneColor_path(
const PointerRNA *ptr)
660 const ID *owner = ptr->owner_id;
661 BLI_assert_msg(owner,
"expecting all bone colors to have an owner");
663 switch (
GS(owner->name)) {
665 return rna_BoneColor_path_posebone(ptr);
667 const bArmature *arm =
reinterpret_cast<const bArmature *
>(owner);
668 if (arm->edbo ==
nullptr) {
669 return rna_BoneColor_path_bone(ptr);
671 return rna_BoneColor_path_editbone(ptr);
679void rna_BoneColor_palette_index_set(PointerRNA *ptr,
const int new_palette_index)
681 if (new_palette_index < -1 || new_palette_index > COLOR_SETS_MAX_THEMED_INDEX) {
682 BKE_reportf(
nullptr, RPT_ERROR,
"Invalid color palette index: %d", new_palette_index);
686 BoneColor *bcolor =
static_cast<BoneColor *
>(ptr->data);
687 bcolor->palette_index = new_palette_index;
689 ID *
id = ptr->owner_id;
694bool rna_BoneColor_is_custom_get(PointerRNA *ptr)
696 BoneColor *bcolor =
static_cast<BoneColor *
>(ptr->data);
697 return bcolor->palette_index < 0;
700static void rna_BoneColor_update(Main * ,
Scene * , PointerRNA *ptr)
711static void rna_Armature_redraw_data(Main * ,
Scene * , PointerRNA *ptr)
713 ID *
id = ptr->owner_id;
721static void rna_EditBone_hide_update(Main * ,
Scene * , PointerRNA *ptr)
723 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
724 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
726 if (ebone->flag & (BONE_HIDDEN_A | BONE_UNSELECTABLE)) {
735static void rna_Bone_hide_update(Main * ,
Scene * , PointerRNA *ptr)
737 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
738 Bone *bone =
static_cast<Bone *
>(ptr->data);
739 if (bone->flag & (BONE_HIDDEN_A | BONE_UNSELECTABLE)) {
748static void rna_Bone_update_renamed(Main * ,
Scene * , PointerRNA *ptr)
750 ID *
id = ptr->owner_id;
759static std::optional<std::string> rna_Bone_path(
const PointerRNA *ptr)
761 const ID *
id = ptr->owner_id;
762 const Bone *bone =
static_cast<const Bone *
>(ptr->data);
763 char name_esc[
sizeof(bone->name) * 2];
771 if (
GS(id->name) == ID_OB) {
772 return fmt::format(
"pose.bones[\"{}\"].bone", name_esc);
777 return fmt::format(
"bones[\"{}\"]", name_esc);
780static IDProperty **rna_Bone_idprops(PointerRNA *ptr)
782 Bone *bone =
static_cast<Bone *
>(ptr->data);
786static IDProperty **rna_Bone_system_idprops(PointerRNA *ptr)
788 Bone *bone =
static_cast<Bone *
>(ptr->data);
789 return &bone->system_properties;
792static std::optional<std::string> rna_EditBone_path(
const PointerRNA *ptr)
794 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
795 char name_esc[
sizeof(ebone->name) * 2];
798 return fmt::format(
"edit_bones[\"{}\"]", name_esc);
801static IDProperty **rna_EditBone_idprops(PointerRNA *ptr)
803 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
807static IDProperty **rna_EditBone_system_idprops(PointerRNA *ptr)
809 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
810 return &ebone->system_properties;
813static void rna_EditBone_name_set(PointerRNA *ptr,
const char *value)
815 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
816 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
817 char oldname[
sizeof(ebone->name)], newname[
sizeof(ebone->name)];
827static void rna_Bone_name_set(PointerRNA *ptr,
const char *value)
829 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
830 Bone *bone =
static_cast<Bone *
>(ptr->data);
831 char oldname[
sizeof(bone->name)], newname[
sizeof(bone->name)];
841static void rna_EditBone_connected_check(EditBone *ebone)
844 if (ebone->flag & BONE_CONNECTED) {
848 if (ebone->flag & BONE_ROOTSEL) {
852 else if (!(ebone->parent->flag & BONE_ROOTSEL)) {
853 ebone->parent->flag &= ~BONE_TIPSEL;
858static void rna_EditBone_connected_set(PointerRNA *ptr,
bool value)
860 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
866 ebone->flag &= ~BONE_CONNECTED;
869 rna_EditBone_connected_check(ebone);
872static PointerRNA rna_EditBone_parent_get(PointerRNA *ptr)
874 EditBone *
data =
static_cast<EditBone *
>(ptr->data);
878static void rna_EditBone_parent_set(PointerRNA *ptr, PointerRNA value, ReportList * )
880 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
881 EditBone *pbone, *parbone =
static_cast<EditBone *
>(value.data);
883 if (parbone ==
nullptr) {
884 if (ebone->parent && !(ebone->parent->flag & BONE_ROOTSEL)) {
885 ebone->parent->flag &= ~BONE_TIPSEL;
888 ebone->parent =
nullptr;
889 ebone->flag &= ~BONE_CONNECTED;
893 if (value.owner_id != ptr->owner_id) {
898 if (parbone == ebone) {
902 for (pbone = parbone->parent; pbone; pbone = pbone->parent) {
903 if (pbone == ebone) {
908 ebone->parent = parbone;
909 rna_EditBone_connected_check(ebone);
913static void rna_EditBone_matrix_get(PointerRNA *ptr,
float *values)
915 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
919static void rna_EditBone_matrix_set(PointerRNA *ptr,
const float *values)
921 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
925static float rna_EditBone_length_get(PointerRNA *ptr)
927 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
928 return len_v3v3(ebone->head, ebone->tail);
931static void rna_EditBone_length_set(PointerRNA *ptr,
float length)
933 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
946static void rna_Bone_bbone_handle_update(Main *bmain,
Scene *scene, PointerRNA *ptr)
948 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
949 Bone *bone =
static_cast<Bone *
>(ptr->data);
952 for (
Object *obt = bmain->objects.first(); obt; obt =
static_cast<Object *
>(obt->id.next)) {
953 if (obt->data == id_cast<ID *>(arm) && obt->pose) {
956 if (pchan && pchan->bone_get(*obt) == bone) {
963 rna_Armature_dependency_update(bmain, scene, ptr);
966static PointerRNA rna_EditBone_bbone_prev_get(PointerRNA *ptr)
968 EditBone *
data =
static_cast<EditBone *
>(ptr->data);
972static void rna_EditBone_bbone_prev_set(PointerRNA *ptr,
976 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
977 EditBone *hbone =
static_cast<EditBone *
>(value.data);
980 if (hbone ==
nullptr || value.owner_id == ptr->owner_id) {
981 ebone->bbone_prev = hbone;
985static void rna_Bone_bbone_prev_set(PointerRNA *ptr, PointerRNA value, ReportList * )
987 Bone *bone =
static_cast<Bone *
>(ptr->data);
988 Bone *hbone =
static_cast<Bone *
>(value.data);
991 if (hbone ==
nullptr || value.owner_id == ptr->owner_id) {
992 bone->bbone_prev = hbone;
996static PointerRNA rna_EditBone_bbone_next_get(PointerRNA *ptr)
998 EditBone *
data =
static_cast<EditBone *
>(ptr->data);
1002static void rna_EditBone_bbone_next_set(PointerRNA *ptr,
1006 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
1007 EditBone *hbone =
static_cast<EditBone *
>(value.data);
1010 if (hbone ==
nullptr || value.owner_id == ptr->owner_id) {
1011 ebone->bbone_next = hbone;
1015static void rna_Bone_bbone_next_set(PointerRNA *ptr, PointerRNA value, ReportList * )
1017 Bone *bone =
static_cast<Bone *
>(ptr->data);
1018 Bone *hbone =
static_cast<Bone *
>(value.data);
1021 if (hbone ==
nullptr || value.owner_id == ptr->owner_id) {
1022 bone->bbone_next = hbone;
1026static PointerRNA rna_EditBone_color_get(PointerRNA *ptr)
1028 EditBone *
data =
static_cast<EditBone *
>(ptr->data);
1032static void rna_Armature_editbone_transform_update(Main *bmain,
Scene *scene, PointerRNA *ptr)
1034 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
1035 EditBone *ebone =
static_cast<EditBone *
>(ptr->data);
1039 if (ebone->parent && ebone->flag & BONE_CONNECTED) {
1040 copy_v3_v3(ebone->parent->tail, ebone->head);
1041 ebone->parent->rad_tail = ebone->rad_head;
1045 for (child = arm->edbo->first(); child; child = child->next) {
1046 if (child->parent == ebone && (child->flag & BONE_CONNECTED)) {
1048 child->rad_head = ebone->rad_tail;
1052 if (arm->flag & ARM_MIRROR_EDIT) {
1056 rna_Armature_update_data(bmain, scene, ptr);
1059static void rna_Armature_bones_next(CollectionPropertyIterator *iter)
1061 ListBaseIterator *internal = &iter->internal.listbase;
1062 Bone *bone =
reinterpret_cast<Bone *
>(internal->link);
1064 if (bone->childbase.first()) {
1065 internal->link = bone->childbase.first_as<Link>();
1067 else if (bone->next) {
1068 internal->link =
reinterpret_cast<Link *
>(bone->next);
1071 internal->link =
nullptr;
1074 bone = bone->parent;
1075 if (bone && bone->next) {
1076 internal->link =
reinterpret_cast<Link *
>(bone->next);
1082 iter->valid = (internal->link !=
nullptr);
1086static bool rna_Armature_bones_lookup_string(PointerRNA *ptr,
const char *key, PointerRNA *r_ptr)
1088 bArmature *arm =
static_cast<bArmature *
>(ptr->data);
1099static bool rna_Armature_is_editmode_get(PointerRNA *ptr)
1101 bArmature *arm = id_cast<bArmature *>(ptr->owner_id);
1102 return (arm->edbo !=
nullptr);
1105static void rna_Armature_transform(bArmature *arm,
const float mat[16])
1110static int rna_Armature_relation_line_position_get(PointerRNA *ptr)
1112 bArmature *arm =
static_cast<bArmature *
>(ptr->data);
1114 return (arm->flag & ARM_DRAW_RELATION_FROM_HEAD) ? 1 : 0;
1117static void rna_Armature_relation_line_position_set(PointerRNA *ptr,
const int value)
1119 bArmature *arm =
static_cast<bArmature *
>(ptr->data);
1124 arm->flag &= ~ARM_DRAW_RELATION_FROM_HEAD;
1165 "A color palette is user-defined, instead of using a theme-defined one");
1173 prop,
"Custom",
"The custom bone colors, used when palette is 'CUSTOM'");
1181# define RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone, is_editbone) \
1183 if (is_posebone) { \
1184 RNA_def_property_update(prop, NC_OBJECT | ND_POSE, "rna_Pose_update"); \
1186 else if (is_editbone) { \
1187 RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update"); \
1190 RNA_def_property_update(prop, 0, "rna_Armature_update_data"); \
1202 prop,
"Roll In",
"Roll offset for the start of the B-Bone, adjusts twist");
1209 prop,
"Roll Out",
"Roll offset for the end of the B-Bone, adjusts twist");
1212 if (is_posebone ==
false) {
1215 prop,
"Inherit End Roll",
"Add Roll Out of the Start Handle bone to the Roll In value");
1226 prop,
"In X",
"X-axis handle offset for start of the B-Bone's curve, adjusts curvature");
1233 prop,
"In Z",
"Z-axis handle offset for start of the B-Bone's curve, adjusts curvature");
1240 prop,
"Out X",
"X-axis handle offset for end of the B-Bone's curve, adjusts curvature");
1247 prop,
"Out Z",
"Z-axis handle offset for end of the B-Bone's curve, adjusts curvature");
1267 if (is_posebone ==
false) {
1270 prop,
"Scale Easing",
"Multiply the final easing values by the Scale In/Out Y factors");
1285 "Scale factors for the start of the B-Bone, adjusts thickness (for tapering effects)");
1297 "Scale factors for the end of the B-Bone, adjusts thickness (for tapering effects)");
1300# undef RNA_DEF_CURVEBONE_UPDATE
1310 "Use connected parent and children to compute the handle"},
1315 "Use the position of the specified bone to compute the handle"},
1320 "Use the offset of the specified bone from rest pose to compute the handle"},
1325 "Use the orientation of the specified bone to compute the handle, ignoring the location"},
1326 {0,
nullptr, 0,
nullptr,
nullptr},
1334 "Fast mapping that is good for most situations, but ignores the rest pose "
1335 "curvature of the B-Bone"},
1340 "Slower mapping that gives better deformation for B-Bones that are sharply "
1341 "curved in rest pose"},
1342 {0,
nullptr, 0,
nullptr,
nullptr},
1351 "Inherit scaling, but remove shearing of the child in the rest orientation"},
1356 "Rotate non-uniform parent scaling to align with the child, applying parent X "
1357 "scale to child X axis, and so forth"},
1362 "Inherit uniform scaling representing the overall change in the volume of the parent"},
1368 "Ignore parent scaling without compensating for parent shear. "
1369 "Replicates the effect of disabling the original Inherit Scale checkbox."},
1370 {0,
nullptr, 0,
nullptr,
nullptr},
1378 "Use display mode from armature (default)"},
1379 {
ARM_DRAW_TYPE_OCTA,
"OCTAHEDRAL", 0,
"Octahedral",
"Display bones as octahedral shape"},
1385 "Display bones as boxes, showing subdivision and B-Splines"},
1390 "Display bones as extruded spheres, showing deformation influence volume"},
1395 "Display bones as thin wires, showing subdivision and B-Splines"},
1396 {0,
nullptr, 0,
nullptr,
nullptr},
1440 prop,
"Connected",
"When bone has a parent, bone's head is stuck to the parent's tail");
1447 prop,
"Inherit Rotation",
"Bone inherits rotation or scale from parent bone");
1454 "Multiply Vertex Group with Envelope",
1455 "When deforming bone, multiply effects of Vertex Group weights with Envelope influence");
1465 prop,
"Inherit Scale",
"Specifies how the bone inherits scaling from the parent bone");
1478 prop,
"Relative Parenting",
"Object children will use relative transform, like deform");
1487 "Bone is always displayed in wireframe regardless of viewport shading mode "
1488 "(useful for non-obstructive custom bone shapes)");
1497 "When bone does not have a parent, it receives cyclic offset effects (Deprecated)");
1522 prop,
"Envelope Deform Distance",
"Bone deformation distance (for Envelope deform only)");
1528 prop,
"Envelope Deform Weight",
"Bone deformation weight (for Envelope deform only)");
1543 prop,
"Envelope Head Radius",
"Radius of head of bone (for Envelope deform only)");
1557 prop,
"Envelope Tail Radius",
"Radius of tail of bone (for Envelope deform only)");
1570 prop,
"B-Bone Segments",
"Number of subdivisions of bone (for B-Bones only)");
1578 "B-Bone Vertex Mapping Mode",
1579 "Selects how the vertices are mapped to B-Bone segments based on their position");
1612 prop,
"B-Bone Start Handle Type",
"Selects how the start handle of the B-Bone is computed");
1620 prop,
"rna_EditBone_bbone_prev_get",
"rna_EditBone_bbone_prev_set",
nullptr,
nullptr);
1630 prop,
"B-Bone Start Handle",
"Bone that serves as the start handle for the B-Bone curve");
1635 "Start Handle Scale",
1636 "Multiply B-Bone Scale In channels by the local scale values of the start handle. "
1637 "This is done after the Scale Easing option and isn't affected by it.");
1645 "Start Handle Ease",
1646 "Multiply the B-Bone Ease In channel by the local Y scale value of the start handle. "
1647 "This is done after the Scale Easing option and isn't affected by it.");
1657 prop,
"B-Bone End Handle Type",
"Selects how the end handle of the B-Bone is computed");
1665 prop,
"rna_EditBone_bbone_next_get",
"rna_EditBone_bbone_next_set",
nullptr,
nullptr);
1675 prop,
"B-Bone End Handle",
"Bone that serves as the end handle for the B-Bone curve");
1681 "Multiply B-Bone Scale Out channels by the local scale values of the end handle. "
1682 "This is done after the Scale Easing option and isn't affected by it.");
1691 "Multiply the B-Bone Ease Out channel by the local Y scale value of the end handle. "
1692 "This is done after the Scale Easing option and isn't affected by it.");
1706 srna =
RNA_def_struct(brna,
"BoneCollectionMemberships",
nullptr);
1709 srna,
"Bone Collection Memberships",
"The Bone Collections that contain this Bone");
1712 func =
RNA_def_function(srna,
"clear",
"rna_BoneCollectionMemberships_clear");
1748 "rna_Bone_collections_begin",
1749 "rna_iterator_listbase_next",
1750 "rna_iterator_listbase_end",
1751 "rna_Bone_collections_get",
1784 "Bone Armature-Relative Matrix",
1786 "4 bone matrix relative to armature");
1793 prop,
"Tail",
"Location of tail end of the bone relative to its parent");
1801 prop,
"Armature-Relative Tail",
"Location of tail end of the bone relative to armature");
1809 prop,
"Head",
"Location of head end of the bone relative to its parent");
1817 prop,
"Armature-Relative Head",
"Location of head end of the bone relative to armature");
1846 "rna_EditBone_collections_begin",
1847 "rna_iterator_listbase_next",
1848 "rna_iterator_listbase_end",
1849 "rna_Bone_collections_get",
1863 prop,
"rna_EditBone_parent_get",
"rna_EditBone_parent_set",
nullptr,
nullptr);
1893 prop,
"rna_EditBone_length_get",
"rna_EditBone_length_set",
nullptr);
1942 "Matrix combining location and rotation of the bone (head position, direction and roll), "
1943 "in armature space (does not include/support bone's length/size)");
1945 prop,
"rna_EditBone_matrix_get",
"rna_EditBone_matrix_set",
nullptr);
1999 prop,
nullptr,
"rna_Armature_act_edit_bone_set",
nullptr,
nullptr);
2008 parm =
RNA_def_string(func,
"name",
"Object", 0,
"",
"New name for the bone");
2011 parm =
RNA_def_pointer(func,
"bone",
"EditBone",
"",
"Newly created edit bone");
2020 parm =
RNA_def_pointer(func,
"bone",
"EditBone",
"",
"EditBone to remove");
2038 srna,
"Armature Bone Collections",
"The Bone Collections of this Armature");
2046 prop,
"rna_BoneCollections_active_get",
"rna_BoneCollections_active_set",
nullptr,
nullptr);
2056 "Active Collection Index",
2057 "The index of the Armature's active bone collection; -1 when there "
2058 "is no active collection. Note that this is indexing the underlying array of bone "
2059 "collections, which may not be in the order you expect. Root collections are listed first, "
2060 "and siblings are always sequential. Apart from that, bone collections can be in any order, "
2061 "and thus incrementing or decrementing this index can make the active bone collection jump "
2062 "around in unexpected ways. For a more predictable interface, use ``active`` or "
2063 "``active_name``.");
2065 "rna_BoneCollections_active_index_get",
2066 "rna_BoneCollections_active_index_set",
2067 "rna_BoneCollections_active_index_range");
2076 "Active Collection Name",
2077 "The name of the Armature's active bone collection; empty when there "
2078 "is no active collection");
2087 "Read-only flag that indicates there is at least one bone collection marked as 'solo'");
2099 "Name of the new collection. Blender will ensure it is unique within the "
2100 "collections of the Armature.");
2106 "Parent Collection",
2107 "If not None, the new bone collection becomes a child of this collection");
2110 func,
"bonecollection",
"BoneCollection",
"",
"Newly created bone collection");
2118 "Remove the bone collection from the armature. If this bone collection has any children, "
2119 "they will be reassigned to their grandparent; in other words, the children will take the "
2120 "place of the removed bone collection.");
2125 "The bone collection to remove");
2131 "Move a bone collection to a different position in the "
2132 "collection list. This can only be used to reorder siblings, "
2133 "and not to change parent-child relationships.");
2136 func,
"from_index", -1, INT_MIN,
INT_MAX,
"From Index",
"Index to move", 0, 10000);
2138 parm =
RNA_def_int(func,
"to_index", -1, INT_MIN,
INT_MAX,
"To Index",
"Target index", 0, 10000);
2155 "Display bones as octahedral shape (default)"},
2161 "Display bones as boxes, showing subdivision and B-Splines"},
2166 "Display bones as extruded spheres, showing deformation influence volume"},
2171 "Display bones as thin wires, showing subdivision and B-Splines"},
2172 {0,
nullptr, 0,
nullptr,
nullptr},
2176 {0,
"POSE", 0,
"Pose Position",
"Show armature in posed state"},
2181 "Show Armature in binding pose state (no posing possible)"},
2182 {0,
nullptr, 0,
nullptr,
nullptr},
2185 {0,
"TAIL", 0,
"Tail",
"Draw the relationship line from the parent tail to the child head"},
2186 {1,
"HEAD", 0,
"Head",
"Draw the relationship line from the parent head to the child head"},
2187 {0,
nullptr, 0,
nullptr,
nullptr},
2194 "Armature data-block containing a hierarchy of bones, usually used for rigging characters");
2200 parm =
RNA_def_float_matrix(func,
"matrix", 4, 4,
nullptr, 0.0f, 0.0f,
"",
"Matrix", 0.0f, 0.0f);
2213 "rna_Armature_bones_next",
2218 "rna_Armature_bones_lookup_string",
2234 "rna_iterator_bone_collections_roots_begin",
2235 "rna_iterator_array_next",
2236 "rna_iterator_array_end",
2237 "rna_iterator_array_dereference_get",
2238 "rna_iterator_bone_collections_roots_length",
2245 prop,
nullptr,
nullptr,
"rna_Armature_collections_override_apply");
2253 "rna_iterator_bone_collections_all_begin",
2254 "rna_iterator_array_next",
2255 "rna_iterator_array_end",
2256 "rna_iterator_array_dereference_get",
2257 "rna_iterator_bone_collections_all_length",
2262 prop,
"Bone Collections (All)",
"List of all bone collections of the armature");
2277 prop,
"Pose Position",
"Show armature in binding pose or final posed state");
2301 "The position for the axes on the bone. Increasing the value moves it "
2302 "closer to the tip; decreasing moves it closer to the root.");
2309 "Relation Line Position",
2310 "The start position of the relation lines from parent to child bones");
2314 "rna_Armature_relation_line_position_get",
2315 "rna_Armature_relation_line_position_set",
2328 prop,
"X-Axis Mirror",
"Apply changes to matching bone on opposite side of X-Axis");
2335 prop,
"Display Custom Bone Shapes",
"Display bones with their custom shapes");
2372 prop,
"Expanded",
"This bone collection is expanded in the bone collections tree view");
2382 prop,
"Visible",
"Bones in this collection will be visible in pose/object mode");
2391 "Ancestors Effectively Visible",
2392 "True when all of the ancestors of this bone collection are marked as "
2393 "visible; always True for root bone collections");
2400 "Effective Visibility",
2401 "Whether this bone collection is effectively visible in the viewport. This is True when "
2402 "this bone collection and all of its ancestors are visible, or when it is marked as "
2409 prop,
"Solo",
"Show only this bone collection, and others also marked as 'solo'");
2419 "Is Local Override",
2420 "This collection was added via a library override in the current blend file");
2427 "This collection is owned by a local Armature, or was added via a "
2428 "library override in the current blend file");
2434 "rna_BoneCollection_bones_begin",
2435 "rna_iterator_listbase_next",
2436 "rna_iterator_listbase_end",
2437 "rna_BoneCollection_bones_get",
2446 "Bones assigned to this bone collection. In armature edit mode this "
2447 "will always return an empty list of bones, as the bone collection "
2448 "memberships are only synchronized when exiting edit mode.");
2453 "rna_iterator_bone_collection_children_begin",
2454 "rna_iterator_array_next",
2455 "rna_iterator_array_end",
2456 "rna_iterator_array_dereference_get",
2457 "rna_iterator_bone_collection_children_length",
2469 prop,
"rna_BoneCollection_parent_get",
"rna_BoneCollection_parent_set",
nullptr,
nullptr);
2472 "Parent bone collection. Note that accessing this requires a scan of "
2473 "all the bone collections to find the parent.");
2482 "Index of this bone collection in the armature.collections_all array. Note that finding "
2483 "this index requires a scan of all the bone collections, so do access this with care.");
2488 prop,
"rna_BoneCollection_child_number_get",
"rna_BoneCollection_child_number_set",
nullptr);
2492 "Index of this collection into its parent's list of children. Note that finding "
2493 "this index requires a scan of all the bone collections, so do access this with care.");
C++ functions to deal with Armature collections (i.e. the successor of bone layers).
Blender kernel action and pose functionality.
#define STRNCPY_UTF8(dst, src)
#define BLI_STR_UTF8_MULTIPLICATION_SIGN
#define BLT_I18NCONTEXT_ID_ARMATURE
#define ID_IS_LINKED(_id)
#define RNA_TRANSLATION_PREC_DEFAULT
#define ND_BONE_COLLECTION
#define ND_SPACE_OUTLINER
#define BLI_assert_msg(a, msg)
float length(VecOp< float, D >) RET
ccl_device_inline void copy_v3_v3(ccl_private float *r, const float3 val)
int armature_bonecoll_find_index(const bArmature *armature, const BoneCollection *bcoll)
int armature_bonecoll_child_number_set(bArmature *armature, BoneCollection *bcoll, int new_child_number)
bool armature_bonecoll_is_descendant_of(const bArmature *armature, int potential_parent_index, int potential_descendant_index)
int armature_bonecoll_find_parent_index(const bArmature *armature, int bcoll_index)
int armature_bonecoll_child_number_find(const bArmature *armature, const BoneCollection *bcoll)
int armature_bonecoll_move_to_parent(bArmature *armature, int from_bcoll_index, int to_child_num, int from_parent_index, int to_parent_index)
void WM_main_add_notifier(uint type, void *reference)
MINLINE void madd_v3_v3v3fl(float r[3], const float a[3], const float b[3], float f)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void ANIM_armature_bonecoll_is_expanded_set(BoneCollection *bcoll, bool is_expanded)
static void rna_def_armature_bones(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
char * STRNCPY(char(&dst)[N], const char *src)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_bitset_array_sdna(PropertyRNA *prop, const char *structname, const char *propname, const int64_t booleanbit, const int length)
void RNA_def_property_boolean_negative_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_override_funcs(PropertyRNA *prop, const char *diff, const char *store, const char *apply)
static void rna_def_bone_collection_memberships(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_api_bone(StructRNA *srna)
void RNA_property_update_main(Main *bmain, Scene *scene, PointerRNA *ptr, PropertyRNA *prop)
void RNA_def_property_float_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void ANIM_armature_bonecoll_active_index_set(bArmature *armature, int bone_collection_index)
static void rna_def_armature(BlenderRNA *brna)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_multi_array(PropertyRNA *prop, int dimension, const int length[])
void RNA_def_struct_system_idprops_func(StructRNA *srna, const char *system_idproperties)
@ BBONE_ADD_PARENT_END_ROLL
BoneCollection * ANIM_armature_bonecoll_new(bArmature *armature, const char *name, int parent_index=-1)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_define_lib_overridable(const bool make_overridable)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void rna_pointer_create_with_ancestors(const PointerRNA &parent, StructRNA *type, void *data, PointerRNA &r_ptr)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
MINLINE int max_ii(int a, int b)
static void rna_def_bone(BlenderRNA *brna)
void RNA_def_armature(BlenderRNA *brna)
@ ARM_DRAW_RELATION_FROM_HEAD
@ LIBOVERRIDE_OP_INSERT_AFTER
static void rna_def_bonecolor(BlenderRNA *brna)
void RNA_def_property_enum_bitflag_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void ED_armature_ebone_transform_mirror_update(bArmature *arm, EditBone *ebo, bool check_select)
void RNA_def_property_ui_range(PropertyRNA *prop, double min, double max, double step, int precision)
void RNA_def_property_float_sdna(PropertyRNA *prop, const char *structname, const char *propname)
@ PROPOVERRIDE_LIBRARY_INSERTION
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
@ PROPOVERRIDE_NO_COMPARISON
void RNA_def_property_float_default(PropertyRNA *prop, float value)
void rna_def_animdata_common(StructRNA *srna)
void ED_armature_bone_rename(Main *bmain, bArmature *arm, const char *oldnamep, const char *newnamep)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
BoneCollection * ANIM_armature_bonecoll_insert_copy_after(bArmature *armature_dst, const bArmature *armature_src, const BoneCollection *anchor_in_dst, const BoneCollection *bcoll_to_copy)
void RNA_api_bonecollection(StructRNA *srna)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void ANIM_armature_bonecoll_unassign_all(Bone *bone)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void ED_armature_ebone_from_mat4(EditBone *ebone, const float mat[4][4])
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
static void rna_def_bonecollection(BlenderRNA *brna)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
char char size_t BLI_str_escape(char *__restrict dst, StringRef src, size_t dst_maxncpy) ATTR_NONNULL(1)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
@ ARM_DRAW_TYPE_ARMATURE_DEFINED
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void ED_armature_transform(bArmature *arm, const float mat[4][4], const bool do_props)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
void ED_armature_ebone_to_mat4(EditBone *ebone, float r_mat[4][4])
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
@ BBONE_HANDLE_SCALE_EASE
void ANIM_armature_bonecoll_active_name_set(bArmature *armature, const char *name)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties)
MINLINE float normalize_v3(float n[3])
void ED_armature_ebone_remove(bArmature *arm, EditBone *exBone)
void RNA_def_function_flag(FunctionRNA *func, FunctionFlag flag)
const EnumPropertyItem rna_enum_color_palettes_items[]
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
MINLINE void sub_v3_v3v3(float r[3], const float a[3], const float b[3])
static void rna_def_bone_common(StructRNA *srna, int editbone)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void RNA_api_armature_edit_bone(StructRNA *srna)
@ BONE_INHERIT_SCALE_FULL
@ BONE_INHERIT_SCALE_AVERAGE
@ BONE_INHERIT_SCALE_ALIGNED
@ BONE_INHERIT_SCALE_NONE
@ BONE_INHERIT_SCALE_NONE_LEGACY
@ BONE_INHERIT_SCALE_FIX_SHEAR
EditBone * ED_armature_ebone_add(bArmature *arm, const char *name)
void rna_def_bone_curved_common(StructRNA *srna, bool is_posebone, bool is_editbone)
void ANIM_armature_bonecoll_active_set(bArmature *armature, BoneCollection *bcoll)
static void rna_def_armature_collections(BlenderRNA *brna, PropertyRNA *cprop)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
ID_Type GS(const char *name)
void BKE_pchan_rebuild_bbone_handles(bPose *pose, bke::PChanBone pchanbone)
void RNA_def_property_int_sdna(PropertyRNA *prop, const char *structname, const char *propname)
static void rna_def_armature_edit_bones(BlenderRNA *brna, PropertyRNA *cprop)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
void DEG_relations_tag_update(Main *bmain)
void ANIM_armature_bonecoll_name_set(Main &bmain, bArmature *armature, BoneCollection *bcoll, const char *name)
static void rna_def_edit_bone(BlenderRNA *brna)
@ BONE_COLLECTION_OVERRIDE_LIBRARY_LOCAL
@ BONE_COLLECTION_EXPANDED
@ BONE_COLLECTION_VISIBLE
@ BONE_COLLECTION_ANCESTORS_VISIBLE
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_define_verify_sdna(bool verify)
@ BONE_RELATIVE_PARENTING
bool ANIM_armature_bonecoll_move_to_index(bArmature *armature, int from_index, int to_index)
void ANIM_armature_bonecoll_is_visible_set(bArmature *armature, BoneCollection *bcoll, bool is_visible)
PropertyRNA * RNA_def_float_matrix(StructOrFunctionRNA *cont_, const char *identifier, const int rows, const int columns, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
MINLINE float len_v3v3(const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, ListBase *lb, IteratorSkipFunc skip)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop, const bool allow_replace)
bool ANIM_armature_bonecoll_is_visible_effectively(const bArmature *armature, const BoneCollection *bcoll)
bool BKE_id_is_in_global_main(ID *id)
void RNA_def_property_array(PropertyRNA *prop, int length)
const int rna_matrix_dimsize_4x4[]
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
Bone * BKE_armature_find_bone_name(bArmature *arm, const char *name)
bPoseChannel * BKE_pose_channel_find_name(const bPose *pose, const char *name)
void rna_iterator_array_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, void *data, size_t itemsize, int64_t length, bool free_ptr, IteratorSkipFunc skip)
void ANIM_armature_bonecoll_solo_set(bArmature *armature, BoneCollection *bcoll, bool is_solo)
bool ANIM_armature_bonecoll_is_editable(const bArmature *armature, const BoneCollection *bcoll)
const int rna_matrix_dimsize_3x3[]
#define RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone, is_editbone)
struct IDProperty * system_properties
ListBaseT< BoneCollectionReference > collections
ListBaseT< BoneCollectionReference > bone_collections
bke::bArmature_Runtime * runtime
int collection_root_count
int active_collection_index