mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-22 05:34:18 -04:00
fix: make sure run the last frame even if the animation time is unreasonable
This commit is contained in:
parent
c55e069364
commit
ccefa572e1
1 changed files with 2 additions and 2 deletions
|
|
@ -723,6 +723,8 @@ void client_animation_next_tick(Client *c) {
|
||||||
|
|
||||||
c->is_pending_open_animation = false;
|
c->is_pending_open_animation = false;
|
||||||
|
|
||||||
|
client_apply_clip(c, factor);
|
||||||
|
|
||||||
if (animation_passed >= 1.0) {
|
if (animation_passed >= 1.0) {
|
||||||
|
|
||||||
// clear the open action state
|
// clear the open action state
|
||||||
|
|
@ -752,8 +754,6 @@ void client_animation_next_tick(Client *c) {
|
||||||
// end flush in next frame, not the current frame
|
// end flush in next frame, not the current frame
|
||||||
c->need_output_flush = false;
|
c->need_output_flush = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
client_apply_clip(c, factor);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void init_fadeout_client(Client *c) {
|
void init_fadeout_client(Client *c) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue