A community-maintained Python framework for creating mathematical animations.
Added assertion that apply_points_function_about_point does not receive None for both the about_point and about_edge
Grant Sanderson6e1dd54aeb05
diff --git a/mobject/mobject.py b/mobject/mobject.pyindex 1d7a8901d..bfe13e09c 100644--- a/mobject/mobject.py+++ b/mobject/mobject.py@@ -255,6 +255,7 @@ class Mobject(Container):def apply_points_function_about_point(self, func, about_point=None, about_edge=ORIGIN):if about_point is None:+ assert(about_edge is not None)about_point = self.get_critical_point(about_edge)for mob in self.family_members_with_points():mob.points -= about_point