From 390e7741602fc458db6ec7df465bf881c7c69d71 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 11 Feb 2019 20:50:54 -0800 Subject: [PATCH] Changed Transform.get_all_families_zipped, since when target_mobject doesn't have its data sligned, problems ensue --- manimlib/animation/transform.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/manimlib/animation/transform.py b/manimlib/animation/transform.py index 473830dd..32c54506 100644 --- a/manimlib/animation/transform.py +++ b/manimlib/animation/transform.py @@ -91,7 +91,17 @@ class Transform(Animation): self.target_copy, ] - def interpolate_submobject(self, submob, start, target, target_copy, alpha): + def get_all_families_zipped(self): + return zip(*[ + mob.family_members_with_points() + for mob in [ + self.mobject, + self.starting_mobject, + self.target_copy, + ] + ]) + + def interpolate_submobject(self, submob, start, target_copy, alpha): submob.interpolate( start, target_copy, alpha, self.path_func