Skip to content

Commit 57d4f0e

Browse files
authored
Begin animations before separating static mobjects (#688)
1 parent 54ea87c commit 57d4f0e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manim/scene/scene.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,9 @@ def play_internal(self, *args, **kwargs):
800800
self.add_static_frames(animations[0].duration)
801801
return
802802

803+
for animation in animations:
804+
animation.begin()
805+
803806
moving_mobjects = None
804807
static_mobjects = None
805808
duration = None
@@ -823,9 +826,6 @@ def play_internal(self, *args, **kwargs):
823826
self.static_image = self.renderer.get_frame()
824827
time_progression = self.get_animation_time_progression(animations)
825828

826-
for animation in animations:
827-
animation.begin()
828-
829829
last_t = 0
830830
for t in time_progression:
831831
dt = t - last_t

0 commit comments

Comments
 (0)