fix: make sure run the last frame even if the animation time is unreasonable

This commit is contained in:
DreamMaoMao 2026-03-20 22:43:09 +08:00
parent c55e069364
commit ccefa572e1

View file

@ -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) {