21void find_selected_bones__visit_bone(
const bArmature *armature,
27 result.all_bones_selected &= is_selected;
28 result.no_bones_selected &= !is_selected;
35 find_selected_bones__visit_bone(armature, callback,
result, child_bone);
45 find_selected_bones__visit_bone(armature, callback,
result, root_bone);
56 auto callback = [&](
Bone *bone) { selected_bone_names.
add(bone->name); };
58 return selected_bone_names;
Functions to deal with Armatures.
#define PBONE_SELECTED(arm, bone)
#define LISTBASE_FOREACH(type, var, list)
struct bArmature bArmature
SelectedBonesResult BKE_armature_find_selected_bones(const bArmature *armature, SelectedBoneCallback callback)
blender::FunctionRef< void(Bone *bone)> SelectedBoneCallback
BoneNameSet BKE_armature_find_selected_bone_names(const bArmature *armature)
blender::Set< std::string > BoneNameSet