Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix wasteful recursion in Mobject.get_merged_array (#2243)

NotWearingPants50bf1b439470
diff --git a/manim/mobject/mobject.py b/manim/mobject/mobject.py
index a1cd5fe34..654e4616e 100644
--- a/manim/mobject/mobject.py
+++ b/manim/mobject/mobject.py
@@ -1846,7 +1846,6 @@ class Mobject:
result = getattr(self, array_attr)
for submob in self.submobjects:
result = np.append(result, submob.get_merged_array(array_attr), axis=0)
- submob.get_merged_array(array_attr)
return result
def get_all_points(self):