From f1c32b64cc7dc1c4756d960938722a0d5a6fc149 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 12 Jan 2021 13:08:01 -1000 Subject: [PATCH] Default to apply animations over family rather than family_members_with_points --- manimlib/animation/animation.py | 2 +- manimlib/animation/transform.py | 2 +- manimlib/mobject/mobject.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/manimlib/animation/animation.py b/manimlib/animation/animation.py index 4b1b192e..76e5cbd8 100644 --- a/manimlib/animation/animation.py +++ b/manimlib/animation/animation.py @@ -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() ]) diff --git a/manimlib/animation/transform.py b/manimlib/animation/transform.py index 1fe99e92..82721a88 100644 --- a/manimlib/animation/transform.py +++ b/manimlib/animation/transform.py @@ -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, diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index 389207c0..d4223e86 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -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],