|
Blender V5.3
|
#include <BKE_armature.hh>
Public Member Functions | |
implementations of DNA struct C++ methods. | |
| void | bones_tag_rebuild () |
| bool | is_bones_array_valid () const |
Public Attributes | |
| int | active_collection_index = 0 |
| BoneCollection * | active_collection = nullptr |
| Array< Bone * > | bones |
| uint64_t | bones_generation_count = 0 |
| Mutex | bones_mutex |
Definition at line 730 of file BKE_armature.hh.
| void blender::bke::bArmature_Runtime::bones_tag_rebuild | ( | ) |
Clear the bones array, ensuring it is rebuilt on its next use.
Definition at line 3544 of file blenkernel/intern/armature.cc.
References bones.
Referenced by blender::ED_armature_from_edit().
| bool blender::bke::bArmature_Runtime::is_bones_array_valid | ( | ) | const |
Return whether the bones array has bones (true), or whether it needs rebuilding (false).
Note that this returns 'invalid' when the Armature has no bones. This is because the bones array is only used to obtain a bone pointer by index, which means it's only valid to be used when there actually are bones.
Definition at line 3549 of file blenkernel/intern/armature.cc.
References bones.
Referenced by blender::BKE_pose_ensure_bone_indices(), blender::rebuild_bone_array(), and blender::rebuild_pose_bone_indices().
| BoneCollection* blender::bke::bArmature_Runtime::active_collection = nullptr |
Definition at line 738 of file BKE_armature.hh.
Referenced by blender::active_bone_collection_poll(), blender::ANIM_armature_bonecoll_active_index_set(), blender::ANIM_armature_bonecoll_active_runtime_refresh(), blender::ANIM_armature_bonecoll_active_set(), blender::ANIM_armature_bonecoll_assign_active(), blender::ANIM_armature_bonecoll_name_set(), blender::ANIM_armature_bonecoll_new(), blender::armature_bone_select_poll(), blender::armature_bonecoll_active_clear(), blender::bone_collection_add_exec(), blender::bone_collection_deselect_exec(), blender::bone_collection_move_exec(), blender::bone_collection_remove_exec(), blender::bone_collection_select_exec(), blender::ED_armature_ebone_add_primitive(), blender::get_bonecoll_named_or_active(), and blender::ed::outliner::tree_element_bone_collection_state_get().
| int blender::bke::bArmature_Runtime::active_collection_index = 0 |
Index of the active collection, -1 if there is no collection active.
For UIList support in the user interface. Assigning here does nothing, use ANIM_armature_bonecoll_active_set to set the active bone collection.
Definition at line 737 of file BKE_armature.hh.
Referenced by blender::ANIM_armature_bonecoll_active_index_set(), blender::ANIM_armature_bonecoll_active_runtime_refresh(), blender::ANIM_armature_bonecoll_active_set(), blender::ANIM_armature_bonecoll_remove_from_index(), blender::armature_bonecoll_active_clear(), blender::animrig::armature_bonecoll_child_number_set(), blender::armature_copy_data(), blender::bone_collection_add_exec(), blender::bonecoll_insert_at_index(), and blender::animrig::internal::bonecolls_rotate_block().
Indexable storage for bones. The bone hierarchy is stored depth-first, so a bone is followed by its children.
Used by bPoseChan::bone_get() to obtain a bone pointer by index.
Definition at line 746 of file BKE_armature.hh.
Referenced by bones_tag_rebuild(), is_bones_array_valid(), blender::rebuild_bone_array(), and blender::bke::tests::TEST_F().
| uint64_t blender::bke::bArmature_Runtime::bones_generation_count = 0 |
Definition at line 747 of file BKE_armature.hh.
Referenced by blender::armature_blend_read_data(), blender::armature_copy_data(), blender::armature_init_data(), blender::BKE_pose_ensure_bone_indices(), blender::rebuild_bone_array(), blender::rebuild_pose_bone_indices(), and blender::bke::tests::TEST_F().
| Mutex blender::bke::bArmature_Runtime::bones_mutex |
Mutex to protect the bones and bones_generation_count fields.
This is used when regenerating the bones array, to ensure only a single thread does this. Read access to the bones array is not protected. So far this has worked well; it's not guaranteed that there won't be a race condition, though.
Definition at line 755 of file BKE_armature.hh.
Referenced by blender::rebuild_bone_array().