A community-maintained Python framework for creating mathematical animations.
More robust Mobject.become
Grant Sanderson0b003fff44bb
diff --git a/mobject/mobject.py b/mobject/mobject.pyindex 5bb034b5d..4e45009a6 100644--- a/mobject/mobject.py+++ b/mobject/mobject.py@@ -977,12 +977,9 @@ class Mobject(Container):Edit points, colors and submobjects to be identialto another mobject"""- self.align_points(mobject)- self.interpolate(self, mobject, 1)- self.submobjects = [- sm.copy() if copy_submobjects else sm- for sm in mobject.submobjects- ]+ self.align_data(mobject)+ for sm1, sm2 in zip(self.get_family(), mobject.get_family()):+ sm1.interpolate(sm1, sm2, 1)return self