mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-28 01:57:30 +09:00
Use a temporary in Animation::Tick()
This commit is contained in:
parent
e0714405a3
commit
685ae236c8
1 changed files with 4 additions and 2 deletions
|
|
@ -589,8 +589,10 @@ Animation::Tick()
|
||||||
// during the *previous* tick of the refresh driver, it can still be
|
// during the *previous* tick of the refresh driver, it can still be
|
||||||
// ahead of the *current* timeline time when we are using the
|
// ahead of the *current* timeline time when we are using the
|
||||||
// vsync timer so we need to clamp it to the timeline time.
|
// vsync timer so we need to clamp it to the timeline time.
|
||||||
mPendingReadyTime.SetValue(std::min(mTimeline->GetCurrentTime().Value(),
|
TimeDuration currentTime = mTimeline->GetCurrentTime().Value();
|
||||||
mPendingReadyTime.Value()));
|
if (currentTime < mPendingReadyTime.Value()) {
|
||||||
|
mPendingReadyTime.SetValue(currentTime);
|
||||||
|
}
|
||||||
FinishPendingAt(mPendingReadyTime.Value());
|
FinishPendingAt(mPendingReadyTime.Value());
|
||||||
mPendingReadyTime.SetNull();
|
mPendingReadyTime.SetNull();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue