A community-maintained Python framework for creating mathematical animations.
ApplyMethod now creates a deep copy of the object it works on
Ruben Zoet21345a62591a
diff --git a/animation/transform.py b/animation/transform.pyindex b5bcbc4af..78ed2b4d7 100644--- a/animation/transform.py+++ b/animation/transform.py@@ -137,7 +137,7 @@ class ApplyMethod(Transform):)assert(isinstance(method.im_self, Mobject))method_kwargs = kwargs.get("method_kwargs", {})- target = method.im_self.copy()+ target = method.im_self.deepcopy()method.im_func(target, *args, **method_kwargs)Transform.__init__(self, method.im_self, target, **kwargs)