From 73cbb9134a8e548cb4050405cfee145ba5900bfe Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Sat, 23 Mar 2019 10:54:59 -0700 Subject: [PATCH] Ah, it turns out rate_func placement in Animation is nuanced... --- manimlib/animation/animation.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/manimlib/animation/animation.py b/manimlib/animation/animation.py index dbb0f99d..17ea65fa 100644 --- a/manimlib/animation/animation.py +++ b/manimlib/animation/animation.py @@ -108,8 +108,7 @@ class Animation(object): # Methods for interpolation, the mean of an Animation def interpolate(self, alpha): alpha = np.clip(alpha, 0, 1) - # self.interpolate_mobject(self.rate_func(alpha)) - self.interpolate_mobject(alpha) # TODO, check + self.interpolate_mobject(self.rate_func(alpha)) def update(self, alpha): """ @@ -122,10 +121,7 @@ class Animation(object): families = list(self.get_all_families_zipped()) for i, mobs in enumerate(families): sub_alpha = self.get_sub_alpha(alpha, i, len(families)) - self.interpolate_submobject( - *mobs, - self.rate_func(sub_alpha) # TODO, check - ) + self.interpolate_submobject(*mobs, sub_alpha) def interpolate_submobject(self, submobject, starting_sumobject, alpha): # Typically ipmlemented by subclass