mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-05 00:02:28 -08:00
Don't compute findFirstCommonParent if has HEAD
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user