Skip to content

Commit bab6331

Browse files
committed
make sure we actually apply the loaded settings, since there is quite a bit of derived state that is invalid otherwise
1 parent ca6cd84 commit bab6331

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Packages/com.unity.inputsystem/InputSystem/InputManager.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4122,7 +4122,8 @@ internal void RestoreStateWithoutDevices(SerializedState state)
41224122

41234123
if (m_Settings != null)
41244124
Object.DestroyImmediate(m_Settings);
4125-
m_Settings = state.settings;
4125+
4126+
settings = state.settings;
41264127

41274128
#if UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS
41284129
// Note that we just reassign actions and never destroy them since always mapped to persisted asset

0 commit comments

Comments
 (0)