diff --git a/kitty/graphics.c b/kitty/graphics.c index 560eed64f..c1b8c5c70 100644 --- a/kitty/graphics.c +++ b/kitty/graphics.c @@ -727,6 +727,9 @@ handle_add_command(GraphicsManager *self, const GraphicsCommand *g, const uint8_ img->current_frame_shown_at = 0; img->extra_framecnt = 0; img->current_frame_index = 0; + img->animation_duration = 0; + img->animation_state = ANIMATION_STOPPED; + img->max_loops = 0; img->current_loop = 0; *is_dirty = true; set_layers_dirty(self); } else {