A community-maintained Python framework for creating mathematical animations.
Let OpenGLMobject.copy return a deep copy by default (#1733)
Benjamin Hackl1e57ab6017a2
diff --git a/manim/mobject/opengl_mobject.py b/manim/mobject/opengl_mobject.pyindex 0a88cc058..5cf0e05cd 100644--- a/manim/mobject/opengl_mobject.py+++ b/manim/mobject/opengl_mobject.py@@ -512,7 +512,17 @@ class OpenGLMobject:# Copying- def copy(self):+ def copy(self, shallow: bool = False):+ """Copies the mobject.++ Parameters+ ----------+ shallow+ Controls whether a shallow copy is returned.+ """+ if not shallow:+ return self.deepcopy()+# TODO, either justify reason for shallow copy, or# remove this redundancy everywhere# return self.deepcopy()