Default to apply animations over family rather than family_members_with_points

This commit is contained in:
Grant Sanderson 2021-01-12 13:08:01 -10:00
parent cc094dd479
commit f1c32b64cc
3 changed files with 4 additions and 2 deletions

View file

@ -77,7 +77,7 @@ class Animation(object):
def get_all_families_zipped(self):
return zip(*[
mob.family_members_with_points()
mob.get_family()
for mob in self.get_all_mobjects()
])

View file

@ -92,7 +92,7 @@ class Transform(Animation):
def get_all_families_zipped(self):
return zip(*[
mob.family_members_with_points()
mob.get_family()
for mob in [
self.mobject,
self.starting_mobject,

View file

@ -1200,6 +1200,8 @@ class Mobject(object):
for key in self.data:
if key in self.locked_data_keys:
continue
if len(self.data[key]) == 0:
continue
func = path_func if key == "points" else interpolate
self.data[key][:] = func(
mobject1.data[key],