A community-maintained Python framework for creating mathematical animations.
Scene.play changed such that Animations can reassign mobject attr during animation
Grant Sanderson3230c186f416
diff --git a/scene/scene.py b/scene/scene.pyindex 9a05ee672..405fb9d8d 100644--- a/scene/scene.py+++ b/scene/scene.py@@ -185,11 +185,14 @@ class Scene(object):for t in time_progression:for animation in animations:animation.update(t / animation.run_time)- new_frame = disp.paint_mobjects(moving_mobjects, background)+ new_frame = disp.paint_mobjects(+ [anim.mobject for anim in animations],+ background+ )self.frames.append(new_frame)for animation in animations:animation.clean_up()- self.add(*moving_mobjects)+ self.add(*[anim.mobject for anim in animations])self.repaint_mojects()return self