Fix slider repeat arrow not updating rotation immediately while paused in editor

A bit of a local solution, but not sure there's a better way to handle
this.

Closes #13342.
This commit is contained in:
Dean Herbert 2021-06-07 15:58:41 +09:00
parent a17bbe8393
commit 277eb9fa6e
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ public void UpdateSnakingPosition(Vector2 start, Vector2 end)
while (Math.Abs(aimRotation - Arrow.Rotation) > 180)
aimRotation += aimRotation < Arrow.Rotation ? 360 : -360;
if (!hasRotation)
// The clock may be paused in a scenario like the editor.
if (!hasRotation || !Clock.IsRunning)
{
Arrow.Rotation = aimRotation;
hasRotation = true;