Skip to content

Commit 4197723

Browse files
committed
don't update tracking state on device change before initialisation
1 parent 0794cde commit 4197723

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Packages/com.unity.inputsystem/InputSystem/Plugins/XR/TrackedPoseDriver.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ protected void UpdateCallback()
499499

500500
void OnDeviceChanged(InputDevice inputDevice, InputDeviceChange inputDeviceChange)
501501
{
502+
if (m_IsFirstUpdate)
503+
return;
502504
ReadTrackingStateWithoutTrackingAction();
503505
}
504506

0 commit comments

Comments
 (0)