Skip to content

Commit 30eb8e6

Browse files
Apply suggestion from @u-pr-agent[bot]
Co-authored-by: u-pr-agent[bot] <205906871+u-pr-agent[bot]@users.noreply.github.com>
1 parent fda63bc commit 30eb8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ protected virtual void SetLocalTransform(Vector3 newPosition, Quaternion newRota
594594
transform.SetLocalPositionAndRotation(newPosition, newRotation);
595595
else if (rotationValid)
596596
transform.localRotation = newRotation;
597-
else
597+
else if (positionValid)
598598
transform.localPosition = newPosition;
599599
break;
600600

0 commit comments

Comments
 (0)