Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Update mobject at the start of an animation

Grant Sandersonc9ea85936f99
diff --git a/manimlib/animation/animation.py b/manimlib/animation/animation.py
index 58625bcab..c0885b74e 100644
--- a/manimlib/animation/animation.py
+++ b/manimlib/animation/animation.py
@@ -29,6 +29,9 @@ class Animation(object):
mobject = instantiate(mobject)
assert(isinstance(mobject, Mobject))
digest_config(self, kwargs, locals())
+ # Make sure it's all up to date
+ mobject.update()
+ # Keep track of where it started
self.starting_mobject = self.mobject.copy()
if self.rate_func is None:
self.rate_func = (lambda x: x)