mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Fix to last commit
This commit is contained in:
parent
ff2b944067
commit
f12370d40e
1 changed files with 1 additions and 1 deletions
|
@ -617,7 +617,7 @@ class Mobject(Container):
|
||||||
|
|
||||||
def reduce_across_dimension(self, points_func, reduce_func, dim):
|
def reduce_across_dimension(self, points_func, reduce_func, dim):
|
||||||
points = self.get_all_points()
|
points = self.get_all_points()
|
||||||
if not points:
|
if points is None or len(points) == 0:
|
||||||
# Note, this default means things like empty VGroups
|
# Note, this default means things like empty VGroups
|
||||||
# will appear to have a center at [0, 0, 0]
|
# will appear to have a center at [0, 0, 0]
|
||||||
return 0
|
return 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue