From 15e27092d3413778381d762eb8ce3bea8b91f2fd Mon Sep 17 00:00:00 2001 From: Erimel Date: Mon, 31 Aug 2026 21:54:20 -0400 Subject: [PATCH] Don't compute findFirstCommonParent if has HEAD --- server/core/src/main/java/dev/slimevr/skeleton/module.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/src/main/java/dev/slimevr/skeleton/module.kt b/server/core/src/main/java/dev/slimevr/skeleton/module.kt index cd74864b2..ee4f19693 100644 --- a/server/core/src/main/java/dev/slimevr/skeleton/module.kt +++ b/server/core/src/main/java/dev/slimevr/skeleton/module.kt @@ -116,7 +116,7 @@ fun buildBones( boneInputs: InputSkeleton, lastResult: BodyPartMap = 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