From c9390f0e59d9ee06092b2cc89fab30be5082647a Mon Sep 17 00:00:00 2001 From: Linus Heck Date: Fri, 11 Jun 2021 08:42:56 +0200 Subject: [PATCH] Fix loops --- manim_presentation/present.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manim_presentation/present.py b/manim_presentation/present.py index 0e8228c..b01a579 100644 --- a/manim_presentation/present.py +++ b/manim_presentation/present.py @@ -99,6 +99,8 @@ class Presentation: state = State.WAIT elif self.current_slide["type"] == "loop": self.current_animation = self.current_slide["start_animation"] + state = State.PLAYING + self.rewind() elif self.current_slide["type"] == "last": state = State.WAIT elif self.current_slide["type"] == "last" and self.current_slide["end_animation"] == self.current_animation: