A community-maintained Python framework for creating mathematical animations.
Have AnimationGroup initialize its runtime before begin is called. This way it can be composed
Grant Sandersonc94aef88451c
diff --git a/manimlib/animation/composition.py b/manimlib/animation/composition.pyindex 043765bfe..753f5111b 100644--- a/manimlib/animation/composition.py+++ b/manimlib/animation/composition.py@@ -33,6 +33,7 @@ class AnimationGroup(Animation):self.group = Group(*remove_list_redundancies([anim.mobject for anim in animations]))+ self.init_run_time()Animation.__init__(self, self.group, **kwargs)def get_all_mobjects(self):@@ -41,7 +42,7 @@ class AnimationGroup(Animation):def begin(self):for anim in self.animations:anim.begin()- self.init_run_time()+ # self.init_run_time()def finish(self):for anim in self.animations: