mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Remove serializing deepcopy
This commit is contained in:
parent
a601384211
commit
88590e5a05
1 changed files with 3 additions and 5 deletions
|
@ -587,11 +587,9 @@ class Mobject(object):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def deepcopy(self):
|
def deepcopy(self):
|
||||||
try:
|
result = copy.deepcopy(self)
|
||||||
# Often faster than deepcopy
|
result._shaders_initialized = False
|
||||||
return pickle.loads(pickle.dumps(self))
|
result._data_has_changed = True
|
||||||
except AttributeError:
|
|
||||||
return copy.deepcopy(self)
|
|
||||||
|
|
||||||
@stash_mobject_pointers
|
@stash_mobject_pointers
|
||||||
def copy(self, deep: bool = False):
|
def copy(self, deep: bool = False):
|
||||||
|
|
Loading…
Add table
Reference in a new issue