ApplyMethod now creates a deep copy of the object it works on

This commit is contained in:
Ruben Zoet
2017-04-18 00:23:18 +01:00
parent 14d2d8fecb
commit 21345a6259

View File

@ -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)