Skip to content

Commit 5a42426

Browse files
authored
[Stay Aligned] Fix broken tracker rotations (#1669)
1 parent 2c6708b commit 5a42426

File tree

1 file changed

+1
-1
lines changed
  • server/core/src/main/java/dev/slimevr/tracking/trackers

1 file changed

+1
-1
lines changed

server/core/src/main/java/dev/slimevr/tracking/trackers/Tracker.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class Tracker @JvmOverloads constructor(
316316
rot = Quaternion.rotationAroundYAxis(stayAligned.yawCorrection.toRad()) * rot
317317

318318
// Reset if needed and is not computed and internal
319-
return if (needReset && !(isComputed && isInternal) && trackerDataType == TrackerDataType.ROTATION) {
319+
return if (allowReset && !(isComputed && isInternal) && trackerDataType == TrackerDataType.ROTATION) {
320320
// Adjust to reset, mounting and drift compensation
321321
resetsHandler.getReferenceAdjustedDriftRotationFrom(rot)
322322
} else {

0 commit comments

Comments
 (0)