From c9ea85936f99dcd1556079c07e5f1ed57bd19a5e Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sun, 3 Feb 2019 12:03:37 -0800 Subject: [PATCH] Update mobject at the start of an animation --- manimlib/animation/animation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manimlib/animation/animation.py b/manimlib/animation/animation.py index 58625bca..c0885b74 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)