Update mobject at the start of an animation

This commit is contained in:
Grant Sanderson 2019-02-03 12:03:37 -08:00
parent d470232749
commit c9ea85936f

View file

@ -29,6 +29,9 @@ class Animation(object):
mobject = instantiate(mobject) mobject = instantiate(mobject)
assert(isinstance(mobject, Mobject)) assert(isinstance(mobject, Mobject))
digest_config(self, kwargs, locals()) 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() self.starting_mobject = self.mobject.copy()
if self.rate_func is None: if self.rate_func is None:
self.rate_func = (lambda x: x) self.rate_func = (lambda x: x)