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 f26ef6f4d8
commit a5341c4b7f

View file

@ -616,6 +616,8 @@ void client_animation_next_tick(Client *c) {
c->is_pending_open_animation = false;
client_apply_clip(c, factor);
if (animation_passed >= 1.0) {
// 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
c->need_output_flush = false;
}
client_apply_clip(c, factor);
}
void init_fadeout_client(Client *c) {