mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-08 08:21:16 -04:00
fix: make sure run the last frame even if the animation time is unreasonable
This commit is contained in:
parent
f26ef6f4d8
commit
a5341c4b7f
1 changed files with 2 additions and 2 deletions
|
|
@ -616,6 +616,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
|
||||||
|
|
@ -645,8 +647,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