Don't compute findFirstCommonParent if has HEAD

This commit is contained in:
Erimel committed 2026-08-31 21:54:20 -04:00
1 parent 9426366780
commit 15e27092d3
1 file changed
+1 -1
@@ -116,7 +116,7 @@ fun buildBones(
boneInputs: InputSkeleton,
lastResult: BodyPartMap<BoneState> = bodyPartMap(),
): ComputedSkeleton {
val highestBone = if (lastResult.isEmpty()) {
val highestBone = if (lastResult.isEmpty() || BodyPart.HEAD in boneInputs.keys) {
BodyPart.HEAD
} else {
// TODO this gets the first common parent and builds bones down from it