Changed Transform.get_all_families_zipped, since when target_mobject doesn't have its data sligned, problems ensue

This commit is contained in:
Grant Sanderson 2019-02-11 20:50:54 -08:00
parent 08fb372fb7
commit 390e774160

View file

@ -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