Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit a7a663a

Browse files
committed
Prevent update overwriting input field changes
1 parent 76c77fb commit a7a663a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/UI/Panels/FreeCamPanel.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ internal static void UpdatePositionInput()
171171
if (!ourCamera)
172172
return;
173173

174+
if (positionInput.Component.isFocused)
175+
return;
176+
174177
lastSetCameraPosition = ourCamera.transform.position;
175178
positionInput.Text = ParseUtility.ToStringForInput<Vector3>(lastSetCameraPosition);
176179
}

0 commit comments

Comments
 (0)