mirror of
https://github.com/mangowm/mango.git
synced 2026-05-02 14:27:27 -07:00
fix: make sure run the last frame even if the animation time is unreasonable
This commit is contained in:
@@ -723,6 +723,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
|
||||
@@ -752,8 +754,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) {
|
||||
|
||||
Reference in New Issue
Block a user