mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Bug fix to apply_points_function
This commit is contained in:
parent
1f3b058aa9
commit
08e22cf859
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue