Blender V5.0
Bone Struct Reference

#include <DNA_armature_types.h>

Public Attributes

struct Bonenext
struct Boneprev
IDPropertyprop
IDPropertysystem_properties
void * _pad0
struct Boneparent
ListBase childbase
char name [64]
float roll
float head [3]
float tail [3]
float bone_mat [3][3]
int flag
int8_t drawtype
char _pad1 [3]
BoneColor color
char inherit_scale_mode
char _pad [3]
float arm_head [3]
float arm_tail [3]
float arm_mat [4][4]
float arm_roll
float dist
float weight
float xwidth
float length
float zwidth
float rad_head
float rad_tail
float roll1
float roll2
float curve_in_x
float curve_in_z
float curve_out_x
float curve_out_z
float ease1
float ease2
float scale_in_x DNA_DEPRECATED
float scale_in_x scale_in_z DNA_DEPRECATED
float scale_out_x DNA_DEPRECATED
float scale_out_x scale_out_z DNA_DEPRECATED
float scale_in [3]
float scale_out [3]
float size [3]
int layer
short segments
char bbone_mapping_mode
char _pad2 [7]
char bbone_prev_type
char bbone_next_type
int bbone_flag
short bbone_prev_flag
short bbone_next_flag
struct Bonebbone_prev
struct Bonebbone_next
Bone_Runtime runtime

Detailed Description

Definition at line 67 of file DNA_armature_types.h.

Member Data Documentation

◆ _pad

char Bone::_pad[3]

Definition at line 100 of file DNA_armature_types.h.

◆ _pad0

void* Bone::_pad0

Definition at line 74 of file DNA_armature_types.h.

◆ _pad1

char Bone::_pad1[3]

Definition at line 96 of file DNA_armature_types.h.

◆ _pad2

char Bone::_pad2[7]

Definition at line 146 of file DNA_armature_types.h.

◆ arm_head

◆ arm_mat

◆ arm_roll

float Bone::arm_roll

Roll in Armature Space (rest pose).

Definition at line 109 of file DNA_armature_types.h.

Referenced by copy_bone_transform(), do_version_bone_roll_256(), and ED_armature_from_edit().

◆ arm_tail

◆ bbone_flag

int Bone::bbone_flag

B-Bone flags.

Definition at line 152 of file DNA_armature_types.h.

Referenced by BKE_pchan_bbone_spline_params_get(), and ED_armature_from_edit().

◆ bbone_mapping_mode

char Bone::bbone_mapping_mode

Vertex to segment mapping mode.

Definition at line 145 of file DNA_armature_types.h.

Referenced by BKE_pchan_bbone_segments_cache_compute(), and ED_armature_from_edit().

◆ bbone_next

◆ bbone_next_flag

short Bone::bbone_next_flag

◆ bbone_next_type

char Bone::bbone_next_type

◆ bbone_prev

struct Bone* Bone::bbone_prev

Next/prev bones to use as handle references when calculating bbones (optional).

Definition at line 156 of file DNA_armature_types.h.

Referenced by BKE_pchan_rebuild_bbone_handles(), copy_bonechildren_custom_handles(), direct_link_bones(), ED_armature_from_edit(), and make_boneList().

◆ bbone_prev_flag

short Bone::bbone_prev_flag

◆ bbone_prev_type

char Bone::bbone_prev_type

Type of next/prev bone handles.

Definition at line 149 of file DNA_armature_types.h.

Referenced by BKE_pchan_bbone_handles_get(), BKE_pchan_bbone_spline_params_get(), and ED_armature_from_edit().

◆ bone_mat

◆ childbase

◆ color

◆ curve_in_x

float Bone::curve_in_x

◆ curve_in_z

float Bone::curve_in_z

◆ curve_out_x

float Bone::curve_out_x

◆ curve_out_z

float Bone::curve_out_z

◆ dist

◆ DNA_DEPRECATED [1/4]

float scale_out_x Bone::DNA_DEPRECATED

Definition at line 135 of file DNA_armature_types.h.

◆ DNA_DEPRECATED [2/4]

float scale_out_x scale_out_z Bone::DNA_DEPRECATED

Definition at line 135 of file DNA_armature_types.h.

◆ DNA_DEPRECATED [3/4]

float scale_in_x Bone::DNA_DEPRECATED

Definition at line 134 of file DNA_armature_types.h.

◆ DNA_DEPRECATED [4/4]

float scale_in_x scale_in_z Bone::DNA_DEPRECATED

Definition at line 134 of file DNA_armature_types.h.

◆ drawtype

int8_t Bone::drawtype

◆ ease1

float Bone::ease1

◆ ease2

◆ flag

int Bone::flag

Definition at line 94 of file DNA_armature_types.h.

Referenced by blender::ed::greasepencil::add_armature_vertex_groups(), blender::ed::transform::add_pose_transdata(), add_verts_to_dgroups(), applyarmature_process_selected_recursive(), blender::bke::armature_vert_task_with_mixer(), armdef_accumulate_bone(), BKE_armature_bone_flag_test_recursive(), BKE_bone_parent_transform_calc_from_pchan(), BKE_constraint_apply_for_pose(), BKE_pchan_bbone_handles_get(), BKE_pchan_to_mat4(), BKE_pose_bone_done(), BKE_pose_update_constraint_flags(), BKE_pose_where_is_bone(), bone_collection_select(), blender::ed::outliner::bone_fn(), blender::animrig::bone_is_selectable(), blender::animrig::bone_is_selectable(), blender::animrig::bone_is_selected(), blender::animrig::bone_is_visible(), bone_mouse_select_menu(), bone_skinnable_cb(), convert_tree(), blender::ed::transform::createTransPose(), dgroup_skinnable_cb(), direct_link_bones(), do_pose_tag_select_op_exec(), blender::draw::overlay::Armatures::draw_armature_pose(), ED_armature_from_edit(), ed_armature_pick_bone_from_selectbuffer_impl(), ED_armature_pose_select_pick_bone(), blender::bke::get_armature_deform_params(), blender::ed::greasepencil::get_bone_mat(), blender::ed::greasepencil::get_skinnable_bones_and_deform_group_names(), blender::ed::transform::gimbal_axis_pose(), blender::io::usd::init_deform_bones_map(), ob_parbone(), blender::ed::outliner::outliner_draw_restrictbuts(), blender::ed::object::parent_set_with_depsgraph(), blender::ed::transform::pose_channel_children_clear_transflag(), pose_do_bone_select(), blender::ed::transform::pose_grab_with_ik(), blender::ed::transform::pose_grab_with_ik_add(), pose_select_connected_invoke(), pose_select_constraint_target_exec(), pose_select_linked_exec(), pose_select_parent_exec(), pose_select_same_collection(), pose_select_same_color(), blender::ed::transform::pose_transform_mirror_update(), rebuild_pose_bone(), blender::ed::outliner::restrictbutton_bone_select_fn(), selectconnected_posebonechildren(), blender::ed::outliner::tree_element_bone_activate(), blender::ed::outliner::tree_element_bone_state_get(), blender::bke::tests::ArmatureDeformTestBase::update_pose_matrices(), v3d_transform_butsR(), vgroup_add_unique_bone_cb(), and blender::animrig::visualkey_get_values().

◆ head

◆ inherit_scale_mode

◆ layer

int Bone::layer

Layers that bone appears on.

Definition at line 141 of file DNA_armature_types.h.

Referenced by ED_armature_from_edit().

◆ length

◆ name

◆ next

◆ parent

◆ prev

struct Bone * Bone::prev

Definition at line 69 of file DNA_armature_types.h.

◆ prop

◆ rad_head

◆ rad_tail

◆ roll

float Bone::roll

Roll is input for edit-mode, length calculated.

Definition at line 83 of file DNA_armature_types.h.

Referenced by armature_transform_recurse(), BKE_armature_where_is_bone(), copy_bone_transform(), and ED_armature_from_edit().

◆ roll1

float Bone::roll1

Curved bones settings - these define the "rest-pose" for a curved bone.

Definition at line 129 of file DNA_armature_types.h.

Referenced by BKE_pchan_bbone_spline_params_get(), and ED_armature_from_edit().

◆ roll2

float Bone::roll2

◆ runtime

◆ scale_in

float Bone::scale_in[3]

◆ scale_out

float Bone::scale_out[3]

◆ segments

◆ size

float Bone::size[3]

Patch for upward compatibility, UNUSED!

Definition at line 139 of file DNA_armature_types.h.

Referenced by write_bone().

◆ system_properties

IDProperty* Bone::system_properties

System-Defined Properties storage.

Definition at line 73 of file DNA_armature_types.h.

Referenced by armature_foreach_id_bone(), copy_bonechildren(), direct_link_bones(), ED_armature_from_edit(), and write_bone().

◆ tail

float Bone::tail[3]

Tail position in Bone Space (see top of this file).

Definition at line 87 of file DNA_armature_types.h.

Referenced by BKE_armature_where_is_bone(), copy_bone_transform(), and blender::bke::tests::ArmatureDeformTestBase::create_test_armature_object().

◆ weight

float Bone::weight

◆ xwidth

float Bone::xwidth

The width for block bones. The final X/Z bone widths are double these values.

Note
keep in this order for transform code which stores a pointer to xwidth, accessing length and zwidth as offsets.

Definition at line 121 of file DNA_armature_types.h.

Referenced by blender::ed::transform::add_pose_transdata(), BKE_armature_where_is_bone(), draw_bone_update_disp_matrix_bbone(), ED_armature_from_edit(), and blender::ed::transform::pose_transform_mirror_update().

◆ zwidth


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