Bug fix to apply_points_function

This commit is contained in:
Grant Sanderson 2021-01-15 09:02:07 -10:00
parent 1f3b058aa9
commit 08e22cf859

View file

@ -141,9 +141,12 @@ class Mobject(object):
about_point = self.get_bounding_box_point(about_edge)
for mob in self.get_family():
arrs = [mob.get_points()]
arrs = []
if mob.has_points():
arrs.append(mob.get_points())
if works_on_bounding_box:
arrs.append(mob.get_bounding_box())
for arr in arrs:
if about_point is None:
arr[:] = func(arr)