mirror of
https://github.com/3b1b/manim.git
synced 2025-08-19 21:08:53 +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):
|
def get_all_families_zipped(self):
|
||||||
return zip(*[
|
return zip(*[
|
||||||
mob.family_members_with_points()
|
mob.get_family()
|
||||||
for mob in self.get_all_mobjects()
|
for mob in self.get_all_mobjects()
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
|
@ -92,7 +92,7 @@ class Transform(Animation):
|
||||||
|
|
||||||
def get_all_families_zipped(self):
|
def get_all_families_zipped(self):
|
||||||
return zip(*[
|
return zip(*[
|
||||||
mob.family_members_with_points()
|
mob.get_family()
|
||||||
for mob in [
|
for mob in [
|
||||||
self.mobject,
|
self.mobject,
|
||||||
self.starting_mobject,
|
self.starting_mobject,
|
||||||
|
|
|
@ -1200,6 +1200,8 @@ class Mobject(object):
|
||||||
for key in self.data:
|
for key in self.data:
|
||||||
if key in self.locked_data_keys:
|
if key in self.locked_data_keys:
|
||||||
continue
|
continue
|
||||||
|
if len(self.data[key]) == 0:
|
||||||
|
continue
|
||||||
func = path_func if key == "points" else interpolate
|
func = path_func if key == "points" else interpolate
|
||||||
self.data[key][:] = func(
|
self.data[key][:] = func(
|
||||||
mobject1.data[key],
|
mobject1.data[key],
|
||||||
|
|
Loading…
Add table
Reference in a new issue