Let NONE bodypart be loaded from config

This commit is contained in:
Erimel committed 2026-08-20 17:49:55 -04:00
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,