Blender V4.3
Bone Struct Reference

#include <DNA_armature_types.h>

Public Attributes

struct Bonenext
 
struct Boneprev
 
IDPropertyprop
 
struct Boneparent
 
ListBase childbase
 
char name [64]
 
float roll
 
float head [3]
 
float tail [3]
 
float bone_mat [3][3]
 
int flag
 
char _pad1 [4]
 
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 59 of file DNA_armature_types.h.

Member Data Documentation

◆ _pad

char Bone::_pad[3]

Definition at line 85 of file DNA_armature_types.h.

◆ _pad1

char Bone::_pad1[4]

Definition at line 81 of file DNA_armature_types.h.

◆ _pad2

char Bone::_pad2[7]

Definition at line 128 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 93 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 134 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 127 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 138 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 131 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_in_x Bone::DNA_DEPRECATED

Definition at line 116 of file DNA_armature_types.h.

◆ DNA_DEPRECATED [2/4]

float scale_in_x scale_in_z Bone::DNA_DEPRECATED

Definition at line 116 of file DNA_armature_types.h.

◆ DNA_DEPRECATED [3/4]

float scale_out_x Bone::DNA_DEPRECATED

Definition at line 117 of file DNA_armature_types.h.

◆ DNA_DEPRECATED [4/4]

float scale_out_x scale_out_z Bone::DNA_DEPRECATED

Definition at line 117 of file DNA_armature_types.h.

◆ ease1

float Bone::ease1

◆ ease2

◆ flag

int Bone::flag

Definition at line 79 of file DNA_armature_types.h.

Referenced by blender::ed::greasepencil::add_armature_vertex_groups(), add_pose_transdata(), add_verts_to_dgroups(), ANIM_bone_is_visible(), animchan_sync_group(), apply_targetless_ik(), applyarmature_process_selected_recursive(), armature_vert_task_with_dvert(), armdef_accumulate_bone(), bc_is_root_bone(), BKE_armature_bone_flag_test_recursive(), BKE_bone_parent_transform_calc_from_pchan(), BKE_constraint_apply_for_pose(), BKE_object_defgroup_selected_get(), BKE_pchan_bbone_handles_get(), BKE_pchan_to_mat4(), BKE_pose_blend_write(), BKE_pose_bone_done(), BKE_pose_channel_active_or_first_selected(), BKE_pose_update_constraint_flags(), BKE_pose_where_is_bone(), bone_children_clear_transflag(), bone_collection_select(), blender::ed::outliner::bone_fn(), bone_mouse_select_menu(), bone_skinnable_cb(), blender::ed::object::calc_active_center_for_posemode(), can_delete_fcurve(), can_delete_key(), compute_vertex_mask__armature_mode(), convert_tree(), createTransPose(), dgroup_skinnable_cb(), direct_link_bones(), do_circle_select_pose__doSelectBone(), do_lasso_select_pose__do_tag(), do_pose_box_select(), do_pose_tag_select_op_exec(), do_pose_tag_select_op_prepare(), blender::draw::overlay::Armatures::draw_armature_pose(), ED_armature_from_edit(), ed_armature_pick_bone_from_selectbuffer_impl(), ED_armature_pose_select_pick_bone(), ED_pose_bone_select(), UnifiedBonePtr::flag(), blender::ed::greasepencil::get_skinnable_bones_and_deform_group_names(), getTransformOrientation_ex(), gimbal_axis_pose(), hide_pose_bone_fn(), blender::io::usd::init_deform_bones_map(), AnimationExporter::is_bone_deform_group(), blender::ed::object::jump_to_bone(), motion_path_cache(), ob_parbone(), blender::ed::outliner::outliner_draw_restrictbuts(), blender::ed::outliner::outliner_select_sync_from_pose_bone(), blender::ed::outliner::outliner_select_sync_to_pose_bone(), blender::ed::object::parent_set(), pchan_circle_doSelectJoint(), blender::ed::outliner::pchan_fn(), pose_bone_do_paste(), pose_do_bone_select(), pose_grab_with_ik(), pose_grab_with_ik_add(), pose_select_connected_invoke(), pose_select_constraint_target_exec(), pose_select_hierarchy_exec(), pose_select_linked_exec(), pose_select_mirror_exec(), pose_select_parent_exec(), pose_select_same_collection(), pose_select_same_color(), pose_select_same_keyingset(), pose_transform_mirror_update(), rebuild_pose_bone(), blender::ed::outliner::restrictbutton_bone_select_fn(), blender::ed::outliner::restrictbutton_bone_visibility_fn(), selectconnected_posebonechildren(), set_pose_keys(), ArmatureBoneDrawStrategy::should_draw_relation_to_parent(), show_pose_bone_cb(), skip_fcurve_selected_data(), snapArmature(), transform_convert_pose_transflags_update(), blender::ed::outliner::tree_element_bone_activate(), blender::ed::outliner::tree_element_bone_state_get(), blender::ed::outliner::tree_element_posechannel_activate(), blender::ed::outliner::tree_element_posechannel_state_get(), v3d_transform_butsR(), vgroup_add_unique_bone_cb(), and blender::animrig::visualkey_get_values().

◆ head

float Bone::head[3]

◆ inherit_scale_mode

◆ layer

int Bone::layer

Layers that bone appears on.

Definition at line 123 of file DNA_armature_types.h.

Referenced by ED_armature_from_edit().

◆ length

◆ name

◆ next

◆ parent

◆ prev

struct Bone * Bone::prev

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

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

Referenced by write_bone().

◆ tail

float Bone::tail[3]

Head/tail and roll in Bone Space.

Definition at line 75 of file DNA_armature_types.h.

Referenced by BKE_armature_where_is_bone(), and copy_bone_transform().

◆ weight

float Bone::weight

Definition at line 96 of file DNA_armature_types.h.

Referenced by dist_bone_deform(), and ED_armature_from_edit().

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

Referenced by add_pose_transdata(), BKE_armature_where_is_bone(), draw_bone_update_disp_matrix_bbone(), ED_armature_from_edit(), and pose_transform_mirror_update().

◆ zwidth


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