mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Don't deepcopy parents
This commit is contained in:
parent
f83cfc42b1
commit
ace2b7fea4
1 changed files with 2 additions and 1 deletions
|
@ -211,8 +211,9 @@ class Mobject(Container):
|
|||
def deepcopy(self):
|
||||
parents = self.parents
|
||||
self.parents = []
|
||||
return copy.deepcopy(self)
|
||||
result = copy.deepcopy(self)
|
||||
self.parents = parents
|
||||
return result
|
||||
|
||||
def generate_target(self, use_deepcopy=False):
|
||||
self.target = None # Prevent exponential explosion
|
||||
|
|
Loading…
Add table
Reference in a new issue