mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-21 09:31:20 -08:00
Let NONE bodypart be loaded from config
This commit is contained in:
1 parent
63f3ffcd7f
commit
ca04a615ef
1 file changed
+1
-1
@@ -35,7 +35,7 @@ class TrackerConfigBehaviour(
|
||||
|
||||
companion object {
|
||||
fun restoreFromConfig(state: TrackerState, config: TrackerConfig, saveMountingReset: Boolean): TrackerState = state.copy(
|
||||
bodyPart = config.bodyPart?.takeIf { it != BodyPart.NONE } ?: state.bodyPart,
|
||||
bodyPart = config.bodyPart ?: BodyPart.NONE,
|
||||
customName = config.customName ?: state.customName,
|
||||
lastMountingMethod = if (saveMountingReset && config.mountingResetOrientation != null) MountingMethod.POSE else MountingMethod.MANUAL,
|
||||
mountingOrientation = config.mountingOrientation,
|
||||
|
||||
Reference in new issue
Block a user