mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +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):
|
def deepcopy(self):
|
||||||
parents = self.parents
|
parents = self.parents
|
||||||
self.parents = []
|
self.parents = []
|
||||||
return copy.deepcopy(self)
|
result = copy.deepcopy(self)
|
||||||
self.parents = parents
|
self.parents = parents
|
||||||
|
return result
|
||||||
|
|
||||||
def generate_target(self, use_deepcopy=False):
|
def generate_target(self, use_deepcopy=False):
|
||||||
self.target = None # Prevent exponential explosion
|
self.target = None # Prevent exponential explosion
|
||||||
|
|
Loading…
Add table
Reference in a new issue