30 while (i < descendants.
size()) {
33 callback(*descendant);
34 Bone *descendant_bone = descendant->bone_get(pose_ob);
37 if (!child_pose_bone) {
42 descendants.
append(child_pose_bone);
51 if (!callback(*pchanbone.
pchan)) {
57 if (!child_pose_bone) {
Functions to deal with Armatures.
Blender kernel action and pose functionality.
Object is a sort of wrapper for general info.
#define BLI_assert_unreachable()
void append(const T &value)
static bool pose_depth_iterator_recursive(Object &pose_ob, bke::PChanBone pchanbone, FunctionRef< bool(bPoseChannel &child_bone)> callback)
bool pose_bone_descendent_depth_iterator(Object &pose_ob, bPoseChannel &pchan, FunctionRef< bool(bPoseChannel &child_bone)> callback)
void pose_bone_descendent_iterator(Object &pose_ob, bPoseChannel &pchan, FunctionRef< void(bPoseChannel &child_bone)> callback)
PChanBoneT< bPoseChannel, Bone > PChanBone
void BKE_pose_channels_hash_ensure(bPose *pose) ATTR_NONNULL(1)
bPoseChannel * BKE_pose_channel_find_name(const bPose *pose, const char *name)
ListBaseT< Bone > childbase