mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 05:24:22 +08:00
Fix to last commit
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user