Blender V4.3
bArmature Struct Reference

#include <DNA_armature_types.h>

Public Attributes

ID id
 
struct AnimDataadt
 
ListBase bonebase
 
struct GHashbonehash
 
void * _pad1
 
ListBaseedbo
 
Boneact_bone
 
struct EditBoneact_edbone
 
char needs_flush_to_id
 
char _pad0 [3]
 
int flag
 
int drawtype
 
short deformflag
 
short pathflag
 
ListBase collections_legacy
 
struct BoneCollection ** collection_array
 
int collection_array_num
 
int collection_root_count
 
char active_collection_name [64]
 
unsigned int layer_used DNA_DEPRECATED
 
unsigned int layer DNA_DEPRECATED
 
unsigned int layer layer_protected DNA_DEPRECATED
 
float axes_position
 
struct bArmature_Runtime runtime
 

Detailed Description

Definition at line 157 of file DNA_armature_types.h.

Member Data Documentation

◆ _pad0

char bArmature::_pad0[3]

Definition at line 183 of file DNA_armature_types.h.

◆ _pad1

void* bArmature::_pad1

Definition at line 165 of file DNA_armature_types.h.

◆ act_bone

◆ act_edbone

◆ active_collection_name

char bArmature::active_collection_name[64]

Do not directly assign, use ANIM_armature_bonecoll_active_set instead. This is stored as a string to make it possible for the library overrides system to understand when it actually changed (compared to a BoneCollection*, which would change on every load).

Definition at line 212 of file DNA_armature_types.h.

Referenced by ArmatureExporter::add_bone_collections(), ANIM_armature_bonecoll_active_index_set(), ANIM_armature_bonecoll_active_runtime_refresh(), ANIM_armature_bonecoll_active_set(), armature_bonecoll_active_clear(), and undoarm_from_editarm().

◆ adt

◆ axes_position

float bArmature::axes_position

Relative position of the axes on the bone, from head (0.0f) to tail (1.0f).

Definition at line 220 of file DNA_armature_types.h.

Referenced by draw_axes().

◆ bonebase

ListBase bArmature::bonebase

Definition at line 161 of file DNA_armature_types.h.

Referenced by ArmatureExporter::add_armature_bones(), ArmatureExporter::add_instance_controller(), ControllerExporter::add_instance_controller(), add_verts_to_dgroups(), ANIM_armature_bonecoll_reconstruct(), ANIM_armature_runtime_free(), apply_armature_pose2bones_exec(), armature_blend_read_data(), armature_blend_write(), armature_bone_from_name_map(), blender::ed::object::armature_coords_and_quats_apply_with_mat4(), blender::ed::object::armature_coords_and_quats_get(), armature_copy_data(), armature_foreach_id(), armature_free_data(), BKE_armature_copy_bone_transforms(), BKE_armature_find_bone_name(), blender::bke::BKE_armature_find_selected_bones(), BKE_armature_transform(), BKE_armature_where_is(), BKE_pose_rebuild(), blo_do_versions_pre250(), blender::deg::DepsgraphNodeBuilder::build_armature(), blender::deg::DepsgraphRelationBuilder::build_armature(), blender::ed::object::data_xform_create_ex(), ED_armature_from_edit(), ED_armature_to_edit(), ED_object_vgroup_calc_from_armature(), AnimationExporter::exportAnimation(), blender::ed::greasepencil::foreach_bone_in_armature(), getTransformOrientation_ex(), ArmatureImporter::make_armatures(), pose_hide_exec(), pose_reveal_exec(), blender::animrig::tests::ArmatureBoneCollections::SetUp(), blender::animrig::tests::KeyframingTest::SetUp(), blender::bke::tests::BKE_armature_find_selected_bones_test::SetUp(), blender::animrig::tests::ArmatureBoneCollections::TearDown(), blender::ed::outliner::tree_element_bone_activate(), blender::ed::object::vgroup_sort_bone_hierarchy(), and blender::io::usd::visit_bones().

◆ bonehash

◆ collection_array

◆ collection_array_num

◆ collection_root_count

◆ collections_legacy

ListBase bArmature::collections_legacy

This is used only for reading/writing BoneCollections in blend files, for forwards/backwards compatibility with Blender 4.0. It should always be empty at runtime. Use collection_array for everything other than file reading/writing. TODO: remove this in Blender 5.0, and instead write the contents of collection_array to blend files directly.

Definition at line 197 of file DNA_armature_types.h.

Referenced by armature_blend_write(), and read_bone_collections().

◆ deformflag

short bArmature::deformflag

Definition at line 188 of file DNA_armature_types.h.

Referenced by blo_do_versions_250(), and blo_do_versions_pre250().

◆ DNA_DEPRECATED [1/3]

unsigned int layer_used bArmature::DNA_DEPRECATED

For UI, to show which layers are there.

Definition at line 215 of file DNA_armature_types.h.

◆ DNA_DEPRECATED [2/3]

unsigned int layer bArmature::DNA_DEPRECATED

For buttons to work, both variables in this order together.

Definition at line 217 of file DNA_armature_types.h.

◆ DNA_DEPRECATED [3/3]

unsigned int layer layer_protected bArmature::DNA_DEPRECATED

Definition at line 217 of file DNA_armature_types.h.

◆ drawtype

◆ edbo

ListBase* bArmature::edbo

EditBone list (use an allocated pointer so the state can be checked).

Definition at line 168 of file DNA_armature_types.h.

Referenced by ArmatureExporter::add_armature_bones(), ANIM_armature_bonecoll_contains_active_bone(), apply_armature_pose2bones_exec(), applyarmature_adjust_edit_position(), applyarmature_process_selected_recursive(), armature_align_bones_exec(), armature_autoside_names_exec(), armature_blend_read_data(), armature_blend_write(), armature_calc_roll_exec(), armature_circle_select(), armature_clear_swap_done_flags(), armature_click_extrude_exec(), armature_copy_data(), armature_deform_coords_impl(), armature_delete_ebone_cb(), armature_delete_selected_exec(), armature_dissolve_ebone_cb(), armature_dissolve_selected_exec(), armature_duplicate_selected_exec(), armature_extrude_exec(), armature_flip_names_exec(), armature_foreach_id(), armature_foreachScreenBone(), armature_free_data(), armature_hide_exec(), armature_parent_clear_exec(), armature_parent_clear_invoke(), armature_parent_set_exec(), armature_parent_set_invoke(), armature_reveal_exec(), armature_roll_clear_exec(), armature_select_hierarchy_exec(), armature_select_linked_exec(), armature_select_linked_impl(), armature_select_linked_pick_invoke(), armature_select_mirror_exec(), armature_select_mirrored_ex(), armature_select_more_less(), armature_shortest_path_pick_invoke(), armature_split_exec(), armature_switch_direction_exec(), armature_symmetrize_exec(), armature_tag_select_mirrored(), armature_tag_unselect(), armature_undosys_step_decode(), bc_get_edit_bone(), BKE_pose_bone_done(), BKE_pose_constraints_evaluate(), BKE_pose_eval_bbone_segments(), BKE_pose_eval_bone(), BKE_pose_iktree_evaluate(), BKE_pose_splineik_evaluate(), BKE_pose_where_is(), bone_collection_assign_editbones(), bone_collection_assign_named_mode_specific(), bone_collection_select(), bone_free(), bone_mouse_select_menu(), blender::animrig::internal::bonecoll_unassign_and_free(), buttons_context_path_bone(), buttons_context_path_pose_bone(), createTransArmatureVerts(), blender::ed::object::data_xform_create_ex(), do_armature_box_select(), do_lasso_select_armature(), blender::draw::overlay::Armatures::draw_armature_edit(), draw_selected_name(), ED_armature_base_and_ebone_from_select_buffer(), ED_armature_bone_rename(), ED_armature_ebone_add(), ED_armature_ebone_remove_ex(), ED_armature_ebone_transform_mirror_update(), ED_armature_edit_deselect_all(), ED_armature_edit_deselect_all_visible(), ED_armature_edit_free(), ED_armature_edit_select_op_from_tagged(), ED_armature_edit_select_pick_bone(), ED_armature_edit_transform(), ED_armature_edit_transform_mirror_update(), ED_armature_from_edit(), ED_armature_join_objects_exec(), ED_armature_object_and_ebone_from_select_buffer(), ED_armature_origin_set(), ED_armature_to_edit(), ED_armature_transform(), ED_transverts_create_from_obedit(), ED_transverts_update_obedit(), edbo_compute_bbone_child(), blender::ed::object::edit_armature_coords_and_quats_apply_with_mat4(), blender::ed::object::edit_armature_coords_and_quats_get(), editarm_object_from_context(), blender::ed::object::editmode_load_free_ex(), blender::ed::outliner::TreeElementIDArmature::expand(), blender::ed::outliner::TreeElementPoseBase::expand(), get_nearest_editbonepoint(), get_symmetrized_bone(), getTransformOrientation_ex(), gizmo_3d_foreach_selected(), blender::ed::object::jump_to_bone(), blender::ed::object::modifier_skin_armature_create(), blender::ed::outliner::namebutton_fn(), pose_channel_flush_to_orig_if_needed(), recalcData_edit_armature(), restoreBones(), blender::ed::outliner::restrictbutton_recursive_ebone(), screen_ctx_active_bone(), screen_ctx_selected_bones_(), screen_ctx_visible_or_editable_bones_(), select_similar_bone_collection(), select_similar_bone_color(), select_similar_children(), select_similar_children_immediate(), select_similar_data_pchan(), select_similar_direction(), select_similar_length(), select_similar_prefix(), select_similar_siblings(), select_similar_suffix(), separate_armature_bones(), separate_armature_exec(), snapArmature(), stats_object_edit(), UI_context_copy_to_selected_list(), undoarm_from_editarm(), undoarm_to_editarm(), and wm_context_member_from_ptr().

◆ flag

int bArmature::flag

Definition at line 185 of file DNA_armature_types.h.

Referenced by acf_dsarm_setting_ptr(), ANIM_armature_bonecoll_is_visible_effectively(), ANIM_armature_bonecoll_solo_set(), ANIM_armature_refresh_solo_active(), armature_align_bones_exec(), armature_autoside_names_exec(), armature_calc_roll_exec(), armature_click_extrude_exec(), armature_context_setup(), armature_dissolve_selected_exec(), armature_duplicate_selected_exec(), armature_extrude_exec(), armature_flip_names_exec(), armature_hide_exec(), armature_parent_set_exec(), armature_roll_clear_exec(), armature_select_linked_exec(), armature_select_linked_pick_invoke(), armature_select_mirrored_ex(), armature_split_exec(), armature_tag_select_mirrored(), BKE_pchan_minmax(), BKE_pose_constraints_evaluate(), BKE_pose_eval_bone(), BKE_pose_eval_init_ik(), BKE_pose_iktree_evaluate(), BKE_pose_splineik_evaluate(), BKE_pose_where_is(), blo_do_versions_pre250(), blender::ui::bonecollections::BoneCollectionItem::build_row(), blender::draw::overlay::Armatures::create_draw_context(), createTransArmatureVerts(), createTransPose(), blender::draw::overlay::Armatures::draw_armature_edit(), blender::draw::overlay::Armatures::draw_armature_pose(), draw_axes(), ED_armature_edit_deselect_all(), ED_armature_edit_deselect_all_visible(), ED_armature_pose_select_pick_bone(), ED_pose_bone_select_tag_update(), ED_pose_deselect_all(), ED_transverts_update_obedit(), pose_de_select_all_exec(), recalcData_edit_armature(), recalcData_pose(), restoreBones(), screen_ctx_selected_bones_(), screen_ctx_visible_or_editable_bones_(), set_ctx_bcolor(), and update_depsgraph().

◆ id

ID bArmature::id

Definition at line 158 of file DNA_armature_types.h.

Referenced by active_bone_collection_poll(), add_or_move_to_collection_bcoll(), add_or_move_to_collection_exec(), ANIM_armature_bonecoll_insert_copy_after(), ANIM_armature_bonecoll_is_editable(), ANIM_armature_bonecoll_name_set(), ANIM_armature_bonecoll_new(), armature_align_bones_exec(), armature_blend_write(), armature_calc_roll_exec(), armature_delete_selected_exec(), armature_dissolve_selected_exec(), armature_fill_bones_exec(), armature_hide_exec(), armature_reveal_exec(), armature_roll_clear_exec(), armature_select_linked_impl(), armature_split_exec(), armature_switch_direction_exec(), armature_undosys_step_decode(), BKE_object_modifier_update_subframe(), BKE_pose_blend_read_after_liblink(), BKE_pose_ensure(), blo_do_versions_pre250(), bone_collection_add_poll(), bone_collection_assign_named_mode_specific(), bone_collection_assign_pchans(), bone_collection_assign_poll(), bone_collection_create_and_assign_poll(), bone_collection_remove_exec(), bone_collection_select(), blender::animrig::internal::bonecolls_debug_list(), blender::deg::DepsgraphNodeBuilder::build_armature(), blender::deg::DepsgraphRelationBuilder::build_armature(), blender::deg::DepsgraphRelationBuilder::build_rig(), buttons_context_path_bone(), blender::deg::DepsgraphBuilder::check_pchan_has_bbone(), blender::ed::object::data_xform_tag_update(), do_pose_tag_select_op_exec(), do_pose_tag_select_op_prepare(), do_versions_after_linking_280(), ED_armature_bone_rename(), ED_armature_edit_select_pick_bone(), ED_armature_from_edit(), ED_armature_join_objects_exec(), ED_armature_pose_select_pick_bone(), ED_operator_posemode_local(), ED_pose_bone_select_tag_update(), blender::ed::outliner::TreeElementBoneCollection::expand(), blender::ed::outliner::TreeElementBoneCollectionBase::expand(), blender::ed::outliner::TreeElementIDArmature::expand(), BoneExtensionManager::getExtensionMap(), move_to_collection_poll(), blender::ed::outliner::namebutton_fn(), blender::ed::object::object_origin_set_exec(), blender::ui::bonecollections::BoneCollectionItem::on_activate(), blender::ui::bonecollections::BoneCollectionItem::on_collapse_change(), blender::ui::bonecollections::BoneCollectionDropTarget::on_drop(), blender::ed::outliner::outliner_draw_restrictbuts(), blender::ed::outliner::outliner_select_sync_to_edit_bone(), blender::ed::outliner::outliner_select_sync_to_pose_bone(), blender::ed::outliner::outliner_set_properties_tab(), pose_de_select_all_exec(), pose_hide_exec(), pose_reveal_exec(), pose_select_mirror_exec(), read_bone_collections(), blender::ed::outliner::restrictbutton_bone_select_fn(), blender::ui::bonecollections::BoneCollectionItem::rna_pointer(), blender::ui::sample_data_from_3d_view(), screen_ctx_active_bone(), screen_ctx_selected_bones_(), screen_ctx_visible_or_editable_bones_(), blender::animrig::tests::ArmatureBoneCollections::SetUp(), blender::animrig::tests::ArmatureBoneCollectionsLiboverrides::SetUp(), blender::animrig::tests::ArmatureBoneCollectionsTestList::SetUp(), snapArmature(), blender::animrig::tests::ArmatureBoneCollections::TearDown(), blender::animrig::tests::ArmatureBoneCollectionsLiboverrides::TearDown(), blender::animrig::tests::ArmatureBoneCollectionsTestList::TearDown(), blender::animrig::tests::TEST_F(), blender::ed::outliner::tree_element_posechannel_activate(), uiTemplateBoneCollectionTree(), v3d_editarmature_buts(), and version_bonegroup_migrate_color().

◆ needs_flush_to_id

char bArmature::needs_flush_to_id

◆ pathflag

short bArmature::pathflag

Definition at line 189 of file DNA_armature_types.h.

Referenced by blo_do_versions_250().

◆ runtime


The documentation for this struct was generated from the following file: