|
Blender V4.3
|
#include <DNA_armature_types.h>
Public Attributes | |
| ID | id |
| struct AnimData * | adt |
| ListBase | bonebase |
| struct GHash * | bonehash |
| void * | _pad1 |
| ListBase * | edbo |
| Bone * | act_bone |
| struct EditBone * | act_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 |
Definition at line 157 of file DNA_armature_types.h.
| char bArmature::_pad0[3] |
Definition at line 183 of file DNA_armature_types.h.
| void* bArmature::_pad1 |
Definition at line 165 of file DNA_armature_types.h.
| Bone* bArmature::act_bone |
Active bone.
Definition at line 177 of file DNA_armature_types.h.
Referenced by blender::ed::object::add_hook_object(), ANIM_armature_bonecoll_contains_active_bone(), ANIM_bonecoll_is_visible_actbone(), animchan_sync_group(), armature_blend_read_data(), armature_copy_data(), BKE_pose_channel_active(), buttons_context_path_bone(), buttons_context_path_pose_bone(), do_pose_tag_select_op_exec(), blender::draw::overlay::Armatures::draw_armature_pose(), draw_selected_name(), ED_armature_from_edit(), ED_armature_pose_select_pick_bone(), ED_armature_to_edit(), ED_pose_bone_select(), blender::ed::object::jump_to_bone(), pose_select_hierarchy_exec(), pose_select_mirror_exec(), pose_select_parent_exec(), screen_ctx_active_bone(), blender::ed::outliner::tree_element_bone_activate(), blender::ed::outliner::tree_element_posechannel_activate(), blender::ed::object::vgroup_sync_from_pose(), and wm_context_member_from_ptr().
| struct EditBone* bArmature::act_edbone |
Active edit-bone (in edit-mode).
Definition at line 179 of file DNA_armature_types.h.
Referenced by ANIM_armature_bonecoll_contains_active_bone(), armature_blend_read_data(), armature_blend_write(), armature_calc_roll_exec(), armature_click_extrude_exec(), armature_copy_data(), armature_delete_selected_exec(), armature_duplicate_selected_exec(), armature_extrude_exec(), armature_fill_bones_exec(), armature_parent_set_invoke(), armature_select_hierarchy_exec(), armature_select_mirror_exec(), armature_shortest_path_pick_invoke(), armature_symmetrize_exec(), bone_free(), buttons_context_path_bone(), blender::ed::object::calc_active_center_for_editmode(), blender::draw::overlay::Armatures::draw_armature_edit(), draw_selected_name(), ED_armature_ebone_add_primitive(), ED_armature_edit_free(), ED_armature_edit_select_pick_bone(), ED_armature_from_edit(), ED_armature_to_edit(), getTransformOrientation_ex(), blender::ed::object::jump_to_bone(), screen_ctx_active_bone(), blender::ed::outliner::tree_element_active_ebone__sel(), undoarm_from_editarm(), undoarm_to_editarm(), v3d_editarmature_buts(), and wm_context_member_from_ptr().
| 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().
| struct AnimData* bArmature::adt |
Definition at line 159 of file DNA_armature_types.h.
Referenced by acf_dsarm_setting_ptr(), BKE_object_modifier_update_subframe(), ED_armature_join_objects_exec(), blender::ed::outliner::TreeElementIDArmature::expand(), and make_new_animlistelem().
| 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().
| 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().
| struct GHash* bArmature::bonehash |
Use a hash-table for quicker lookups of bones by name.
Definition at line 164 of file DNA_armature_types.h.
Referenced by armature_blend_read_data(), armature_blend_write(), armature_copy_data(), BKE_armature_bone_hash_free(), BKE_armature_bone_hash_make(), BKE_armature_find_bone_name(), copy_and_update_ownership(), and ED_armature_bone_rename().
| struct BoneCollection** bArmature::collection_array |
Definition at line 199 of file DNA_armature_types.h.
Referenced by add_or_move_to_collection_bcoll(), ANIM_armature_bonecoll_active_index_set(), ANIM_armature_bonecoll_get_index_by_name(), ANIM_armature_bonecoll_move_to_index(), ANIM_armature_bonecoll_remove_from_index(), armature_blend_write(), blender::animrig::armature_bonecoll_child_number_set(), blender::animrig::armature_bonecoll_is_child_of(), blender::animrig::armature_bonecoll_is_descendant_of(), blender::animrig::armature_bonecoll_move_to_parent(), armature_copy_data(), armature_free_data(), blender::ui::bonecollections::ArmatureBoneCollection::bcoll(), blender::ui::bonecollections::ArmatureBoneCollection::bcoll(), bonecoll_child_number(), bonecoll_insert_as_child(), bonecoll_insert_at_index(), blender::animrig::internal::bonecolls_debug_list(), blender::animrig::internal::bonecolls_find_index_near(), blender::animrig::internal::bonecolls_rotate_block(), ED_armature_join_objects_exec(), join_armature_remap_collection(), liboverride_recursively_add_children(), move_to_collection_menu_create(), read_bone_collections(), blender::animrig::tests::ArmatureBoneCollectionsLiboverrides::SetUp(), blender::animrig::tests::ArmatureBoneCollectionsTestList::SetUp(), undoarm_from_editarm(), and undoarm_to_editarm().
| int bArmature::collection_array_num |
Definition at line 200 of file DNA_armature_types.h.
Referenced by add_or_move_to_collection_bcoll(), ANIM_armature_bonecoll_active_index_set(), ANIM_armature_bonecoll_get_index_by_name(), ANIM_armature_bonecoll_move(), ANIM_armature_bonecoll_move_to_index(), ANIM_armature_bonecoll_remove_from_index(), armature_blend_write(), blender::animrig::armature_bonecoll_move_to_parent(), armature_copy_data(), armature_free_data(), bonecoll_insert_as_child(), bonecoll_insert_at_index(), blender::animrig::internal::bonecolls_debug_list(), ED_armature_join_objects_exec(), blender::ed::outliner::TreeElementIDArmature::expand(), read_bone_collections(), undoarm_from_editarm(), and undoarm_to_editarm().
| int bArmature::collection_root_count |
Number of root bone collections.
collection_array[0:collection_root_count] are the collections without a parent collection.
Definition at line 206 of file DNA_armature_types.h.
Referenced by ANIM_armature_bonecoll_remove_from_index(), blender::animrig::armature_bonecoll_child_number_set(), blender::animrig::armature_bonecoll_is_root(), blender::animrig::armature_bonecoll_move_to_parent(), bonecoll_insert_as_root(), blender::animrig::internal::bonecolls_debug_list(), blender::ui::bonecollections::BoneCollectionTreeView::build_tree(), move_to_collection_menu_create(), read_bone_collections(), undoarm_from_editarm(), and undoarm_to_editarm().
| 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().
| short bArmature::deformflag |
Definition at line 188 of file DNA_armature_types.h.
Referenced by blo_do_versions_250(), and blo_do_versions_pre250().
| 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.
| 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.
| unsigned int layer layer_protected bArmature::DNA_DEPRECATED |
Definition at line 217 of file DNA_armature_types.h.
| int bArmature::drawtype |
Definition at line 186 of file DNA_armature_types.h.
Referenced by armature_context_setup(), blender::draw::overlay::Armatures::create_draw_context(), ArmatureBoneDrawStrategyBBone::culling_test(), ArmatureBoneDrawStrategyEnvelope::culling_test(), blender::draw::overlay::Armatures::draw_armature_edit(), blender::draw::overlay::Armatures::draw_armature_pose(), blender::ed::object::modifier_skin_armature_create(), transform_mode_really_used(), and WIDGETGROUP_armature_spline_poll().
| 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().
| 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 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().
| char bArmature::needs_flush_to_id |
ID data is older than edit-mode data (TODO: move to edit-mode struct).
Definition at line 182 of file DNA_armature_types.h.
Referenced by armature_blend_read_data(), armature_blend_write(), armature_undosys_step_decode(), armature_undosys_step_encode(), BKE_object_data_editmode_flush_ptr_get(), and blender::ed::object::editmode_enter_ex().
| short bArmature::pathflag |
Definition at line 189 of file DNA_armature_types.h.
Referenced by blo_do_versions_250().
| struct bArmature_Runtime bArmature::runtime |
Keep last, for consistency with the position of other DNA runtime structures.
Definition at line 223 of file DNA_armature_types.h.
Referenced by active_bone_collection_poll(), ArmatureExporter::add_bone_collections(), ANIM_armature_bonecoll_active_index_set(), ANIM_armature_bonecoll_active_runtime_refresh(), ANIM_armature_bonecoll_active_set(), ANIM_armature_bonecoll_assign_active(), ANIM_armature_bonecoll_new(), ANIM_armature_bonecoll_remove_from_index(), armature_blend_read_data(), armature_blend_write(), armature_bone_select_poll(), armature_bonecoll_active_clear(), blender::animrig::armature_bonecoll_child_number_set(), armature_copy_data(), bone_collection_add_exec(), bone_collection_deselect_exec(), bone_collection_move_exec(), bone_collection_remove_exec(), bone_collection_select_exec(), bonecoll_insert_at_index(), blender::animrig::internal::bonecolls_rotate_block(), ED_armature_ebone_add_primitive(), get_bonecoll_named_or_active(), blender::ui::bonecollections::BoneCollectionItem::should_be_active(), and blender::ed::outliner::tree_element_bone_collection_state_get().