If about_edge is None, default to ORIGIN

This commit is contained in:
Grant Sanderson
2019-02-09 15:47:32 -08:00
parent 73c20d726a
commit c1cc1a8b24

View File

@ -332,9 +332,10 @@ class Mobject(Container):
# Note, much of these are now redundant with default behavior of # Note, much of these are now redundant with default behavior of
# above methods # above methods
def apply_points_function_about_point(self, func, about_point=None, about_edge=ORIGIN): def apply_points_function_about_point(self, func, about_point=None, about_edge=None):
if about_point is None: if about_point is None:
assert(about_edge is not None) if about_edge is None:
about_edge = ORIGIN
about_point = self.get_critical_point(about_edge) about_point = self.get_critical_point(about_edge)
for mob in self.family_members_with_points(): for mob in self.family_members_with_points():
mob.points -= about_point mob.points -= about_point