From 1aaef5aba922e96b1c8a2c9dfae804fdd994935b Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 11 Feb 2019 20:53:20 -0800 Subject: [PATCH] Change where Animation.begin is invoked --- manimlib/scene/scene.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manimlib/scene/scene.py b/manimlib/scene/scene.py index b909f105..ca031e8e 100644 --- a/manimlib/scene/scene.py +++ b/manimlib/scene/scene.py @@ -460,14 +460,14 @@ class Scene(Container): def begin_animations(self, animations): curr_mobjects = self.get_mobject_family_members() for animation in animations: + # Begin animation + animation.begin() # Anything animated that's not already in the # scene gets added to the scene mob = animation.mobject if mob not in curr_mobjects: self.add(mob) curr_mobjects += mob.get_family() - # Begin animation - animation.begin() def progress_through_animations(self, animations): # Paint all non-moving objects onto the screen, so they don't