diff --git a/gui/app/src/components/tracker/TrackerSettings.tsx b/gui/app/src/components/tracker/TrackerSettings.tsx
index ca2027cb7..24789b238 100644
--- a/gui/app/src/components/tracker/TrackerSettings.tsx
+++ b/gui/app/src/components/tracker/TrackerSettings.tsx
@@ -439,7 +439,8 @@ export function TrackerSettingsPage() {
{(tracker?.tracker.info?.isImu ||
(tracker?.tracker.origin == DeviceOrigin.DRIVER &&
- tracker?.tracker.info?.intendedBodyPart != BodyPart.HEAD)) && (
+ tracker?.tracker.info?.intendedBodyPart !=
+ tracker?.tracker.info?.bodyPart)) && (
{l10n.getString('tracker-settings-mounting_section')}
diff --git a/gui/app/src/components/widgets/SkeletonVisualizerWidget.tsx b/gui/app/src/components/widgets/SkeletonVisualizerWidget.tsx
index ed432b814..6adebb8d7 100644
--- a/gui/app/src/components/widgets/SkeletonVisualizerWidget.tsx
+++ b/gui/app/src/components/widgets/SkeletonVisualizerWidget.tsx
@@ -206,7 +206,7 @@ function initializePreview(
const root =
bones.get(BodyPart.HEAD) ??
bones.get(BodyPart.HIP) ??
- bones.get(BodyPart.LOWER_WAIST);
+ bones.get(BodyPart.UPPER_CHEST);
if (!root) return out.copy(followOffset);
out.copy(Vector3FromVec3fT(root.headPosition));
skeletonGroup.updateWorldMatrix(true, false);
@@ -226,8 +226,8 @@ function initializePreview(
}
skeletonGroup.add(skeletonHelper);
- const hmd = bones.get(BodyPart.HEAD);
- const quat = QuaternionFromQuatT(hmd?.orientation).normalize().invert();
+ const head = bones.get(BodyPart.HEAD);
+ const quat = QuaternionFromQuatT(head?.orientation).normalize().invert();
// Project quat to (0x, 1y, 0z)
const VEC_Y = new Vector3(0, 1, 0);
diff --git a/gui/app/src/utils/skeletonMeshHelper.ts b/gui/app/src/utils/skeletonMeshHelper.ts
index ea632c450..a5a839d94 100644
--- a/gui/app/src/utils/skeletonMeshHelper.ts
+++ b/gui/app/src/utils/skeletonMeshHelper.ts
@@ -122,7 +122,7 @@ export class BasedSkeletonMeshHelper extends Object3D {
if (partName && modelUrl) {
modelUrlsToFetch.add(modelUrl);
const addr = addrObject(modelUrl, partName);
- partsByAddr[addr].push([part, attached]);
+ (partsByAddr[addr] ??= []).push([part, attached]);
}
part.shapes.push(attached);
diff --git a/server/core/src/main/java/dev/slimevr/tracker/reducer.kt b/server/core/src/main/java/dev/slimevr/tracker/reducer.kt
index 78d55aac8..80d4b5692 100644
--- a/server/core/src/main/java/dev/slimevr/tracker/reducer.kt
+++ b/server/core/src/main/java/dev/slimevr/tracker/reducer.kt
@@ -168,13 +168,13 @@ fun reduce(
}
is TrackerActions.PoseMountingReset -> {
- val referenceRotation = action.referenceRotation ?: state.rotation
-
// Positional trackers' heading is aligned on full reset, not on mounting reset, except for a reference.
val alignHeading = state.position == null || action.referenceRotation == null
// A positional reference tracker needs to correct its heading on mounting reset.
val correctHeading = state.position != null && action.referenceRotation == null
+ val referenceRotation = action.referenceRotation ?: state.rotation
+
val headingAlignment = if (alignHeading) {
estimateHeadingAlign(
state.rawRotation,