Skip to content

Commit

Permalink
Fix animation pattern scrub sync
Browse files Browse the repository at this point in the history
  • Loading branch information
acidbubbles committed Dec 28, 2021
1 parent 2f48345 commit cb44239
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/AtomAnimations/Editing/AtomAnimationEditContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ public float clipTime
if (!animation.isPlaying || animation.paused)
Sample();
if (current.animationPattern != null)
current.animationPattern.SetFloatParamValue("currentTime", playTime);
current.animationPattern.SetFloatParamValue("currentTime", value);

// TODO: If the scrubber range does not contain the time, update the range
onTimeChanged.Invoke(timeArgs);
}
Expand Down

0 comments on commit cb44239

Please sign in to comment.