Blender V5.0
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 175 of file DNA_armature_types.h.

Member Data Documentation

◆ _pad0

char bArmature::_pad0[3]

Definition at line 206 of file DNA_armature_types.h.

◆ _pad1

void* bArmature::_pad1

Definition at line 188 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 235 of file DNA_armature_types.h.

Referenced by 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 243 of file DNA_armature_types.h.

Referenced by draw_axes().

◆ bonebase

◆ 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 220 of file DNA_armature_types.h.

Referenced by armature_blend_write(), and read_bone_collections().

◆ deformflag

short bArmature::deformflag

Definition at line 211 of file DNA_armature_types.h.

Referenced by blo_do_versions_250(), and blo_do_versions_pre250().

◆ DNA_DEPRECATED [1/3]

unsigned int layer bArmature::DNA_DEPRECATED

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

Definition at line 240 of file DNA_armature_types.h.

◆ DNA_DEPRECATED [2/3]

unsigned int layer layer_protected bArmature::DNA_DEPRECATED

Definition at line 240 of file DNA_armature_types.h.

◆ DNA_DEPRECATED [3/3]

unsigned int layer_used bArmature::DNA_DEPRECATED

For UI, to show which layers are there.

Definition at line 238 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 191 of file DNA_armature_types.h.

Referenced by 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_bone_select_poll(), armature_calc_roll_exec(), armature_circle_select(), armature_clear_swap_done_flags(), armature_click_extrude_exec(), armature_copy_data(), 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(), 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(), blender::ed::transform::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::TreeElementPoseBase::expand(), get_nearest_editbonepoint(), get_symmetrized_bone(), blender::ed::transform::getTransformOrientation_ex(), blender::ed::transform::gizmo_3d_foreach_selected(), blender::ed::object::jump_to_bone(), mirror_bone_collection_assignments(), blender::ed::object::modifier_skin_armature_create(), blender::ed::outliner::namebutton_fn(), pose_channel_flush_to_orig_if_needed(), blender::ed::transform::recalcData_edit_armature(), blender::ed::transform::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(), blender::ed::transform::snapArmature(), stats_object_edit(), UI_context_copy_to_selected_list(), undoarm_from_editarm(), undoarm_to_editarm(), update_duplicate_subtarget(), blender::bke::verify_armature_deform_valid(), and wm_context_member_from_ptr().

◆ flag

int bArmature::flag

Definition at line 208 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(), any_bone_collection_visible(), armature_align_bones_exec(), armature_autoside_names_exec(), armature_calc_roll_exec(), armature_click_extrude_exec(), armature_dissolve_selected_exec(), armature_duplicate_selected_exec(), armature_extrude_exec(), armature_flip_names_exec(), armature_parent_set_exec(), armature_roll_clear_exec(), armature_select_linked_pick_invoke(), armature_select_mirrored_ex(), 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::draw::overlay::Armatures::create_draw_context(), blender::ed::transform::createTransArmatureVerts(), blender::ed::transform::createTransPose(), blender::draw::overlay::Armatures::draw_armature_edit(), blender::draw::overlay::Armatures::draw_armature_pose(), draw_axes(), ED_armature_pose_select_pick_bone(), ED_pose_bone_select_tag_update(), ED_transverts_update_obedit(), pose_de_select_all_exec(), blender::ed::transform::recalcData_edit_armature(), blender::ed::transform::recalcData_pose(), blender::ed::transform::restoreBones(), screen_ctx_selected_bones_(), screen_ctx_visible_or_editable_bones_(), set_ctx_bcolor(), transform_follows_custom_tx(), and update_depsgraph().

◆ id

ID bArmature::id

Definition at line 181 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_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(), move_to_collection_poll(), blender::ed::outliner::namebutton_fn(), blender::ed::object::object_origin_set_exec(), 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(), rnapointer_pchan_to_bone(), blender::ui::sample_data_from_3d_view(), screen_ctx_active_bone(), screen_ctx_selected_bones_(), screen_ctx_visible_or_editable_bones_(), blender::ed::transform::snapArmature(), blender::animrig::tests::TEST_F(), blender::ed::outliner::tree_element_posechannel_activate(), uiTemplateBoneCollectionTree(), v3d_editarmature_buts(), version_bonegroup_migrate_color(), and WIDGETGROUP_armature_spline_poll().

◆ needs_flush_to_id

char bArmature::needs_flush_to_id

◆ pathflag

short bArmature::pathflag

Definition at line 212 of file DNA_armature_types.h.

Referenced by blo_do_versions_250().

◆ runtime


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