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
|
||||
|
||||
def deepcopy(self):
|
||||
try:
|
||||
# Often faster than deepcopy
|
||||
return pickle.loads(pickle.dumps(self))
|
||||
except AttributeError:
|
||||
return copy.deepcopy(self)
|
||||
result = copy.deepcopy(self)
|
||||
result._shaders_initialized = False
|
||||
result._data_has_changed = True
|
||||
|
||||
@stash_mobject_pointers
|
||||
def copy(self, deep: bool = False):
|
||||
|
|
Loading…
Add table
Reference in a new issue