mirror of
https://github.com/3b1b/manim.git
synced 2025-08-19 13:01:00 +00:00
Default to apply animations over family rather than family_members_with_points
This commit is contained in:
parent
cc094dd479
commit
f1c32b64cc
3 changed files with 4 additions and 2 deletions
|
@ -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()
|
||||
])
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Add table
Reference in a new issue