22void find_selected_bones__visit_bone(
const bArmature *armature,
28 result.all_bones_selected &= is_selected;
29 result.no_bones_selected &= !is_selected;
36 find_selected_bones__visit_bone(armature, callback,
result, child_bone);
47 find_selected_bones__visit_bone(armature, callback,
result, root_bone);
58 auto callback = [&](
Bone *bone) { selected_bone_names.
add(bone->name); };
60 return selected_bone_names;
72 selected_bone_names.
add(pose_bone->name);
75 return selected_bone_names;
Functions to deal with Armatures.
#define LISTBASE_FOREACH(type, var, list)
struct bArmature bArmature
Object is a sort of wrapper for general info.
bool bone_is_selected(const bArmature *armature, const Bone *bone)
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
BoneNameSet BKE_pose_channel_find_selected_names(const Object *object)