Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix to last commit

Grant Sandersonf12370d40e6f
diff --git a/mobject/mobject.py b/mobject/mobject.py
index 40ad94274..8283c345a 100644
--- a/mobject/mobject.py
+++ b/mobject/mobject.py
@@ -617,7 +617,7 @@ class Mobject(Container):
def reduce_across_dimension(self, points_func, reduce_func, dim):
points = self.get_all_points()
- if not points:
+ if points is None or len(points) == 0:
# Note, this default means things like empty VGroups
# will appear to have a center at [0, 0, 0]
return 0