mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-12-03 07:12:43 -08:00
oops Mighty <3
fix FORWARD being renamed to FRONT
This commit is contained in:
1 parent
9a45f99b0e
commit
71e24d0cb9
1 file changed
+7
-1
@@ -59,7 +59,13 @@ public class IMUTracker implements Tracker, TrackerWithTPS, TrackerWithBattery {
|
||||
// Loading a config is an act of user editing, therefore it shouldn't not be allowed if editing is not allowed
|
||||
if (userEditable()) {
|
||||
if(config.mountingRotation != null) {
|
||||
mounting = TrackerMountingRotation.valueOf(config.mountingRotation);
|
||||
try{
|
||||
mounting = TrackerMountingRotation.valueOf(config.mountingRotation);
|
||||
}
|
||||
catch (Exception e){ // FORWARD was renamed to FRONT
|
||||
mounting = TrackerMountingRotation.FRONT;
|
||||
config.mountingRotation = "FRONT";
|
||||
}
|
||||
if(mounting != null) {
|
||||
rotAdjust.set(mounting.quaternion);
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user