Skip to content

Commit ce0a9a5

Browse files
committed
renamed copy function
1 parent 55b7d71 commit ce0a9a5

File tree

1 file changed

+4
-4
lines changed
  • Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput

1 file changed

+4
-4
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInput.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ public InputActionAsset actions
348348

349349
if (didChange || m_Enabled)
350350
// copy action asset for the first player so that the original asset stays untouched
351-
CopyActionAsset();
351+
CopyActionAssetAndApplyBindingOverrides();
352352

353353
if (m_Enabled)
354354
{
@@ -1379,7 +1379,7 @@ private void InitializeActions()
13791379
for (var i = 0; i < s_AllActivePlayersCount; ++i)
13801380
if (s_AllActivePlayers[i].m_Actions == m_Actions && s_AllActivePlayers[i] != this)
13811381
{
1382-
CopyActionAsset();
1382+
CopyActionAssetAndApplyBindingOverrides();
13831383
break;
13841384
}
13851385

@@ -1429,7 +1429,7 @@ private void InitializeActions()
14291429
m_ActionsInitialized = true;
14301430
}
14311431

1432-
private void CopyActionAsset()
1432+
private void CopyActionAssetAndApplyBindingOverrides()
14331433
{
14341434
// duplicate action asset to not operate on the original (as it might be used outside - eg project wide action asset or UIInputModule)
14351435
var oldActions = m_Actions;
@@ -1814,7 +1814,7 @@ private void Awake()
18141814
{
18151815
// If an action asset is assigned copy it to avoid modifying the original asset.
18161816
if (m_Actions != null)
1817-
CopyActionAsset();
1817+
CopyActionAssetAndApplyBindingOverrides();
18181818
}
18191819

18201820
private void OnEnable()

0 commit comments

Comments
 (0)