mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-06-19 19:30:53 +08:00
Fix loops
This commit is contained in:
@ -99,6 +99,8 @@ class Presentation:
|
|||||||
state = State.WAIT
|
state = State.WAIT
|
||||||
elif self.current_slide["type"] == "loop":
|
elif self.current_slide["type"] == "loop":
|
||||||
self.current_animation = self.current_slide["start_animation"]
|
self.current_animation = self.current_slide["start_animation"]
|
||||||
|
state = State.PLAYING
|
||||||
|
self.rewind()
|
||||||
elif self.current_slide["type"] == "last":
|
elif self.current_slide["type"] == "last":
|
||||||
state = State.WAIT
|
state = State.WAIT
|
||||||
elif self.current_slide["type"] == "last" and self.current_slide["end_animation"] == self.current_animation:
|
elif self.current_slide["type"] == "last" and self.current_slide["end_animation"] == self.current_animation:
|
||||||
|
Reference in New Issue
Block a user