mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Add deep option to VMobject.copy
This commit is contained in:
parent
4f37486655
commit
a6ee54488b
1 changed files with 2 additions and 2 deletions
|
@ -148,8 +148,8 @@ class VMobject(Mobject):
|
|||
raise Exception("All submobjects must be of type VMobject")
|
||||
super().add(*vmobjects)
|
||||
|
||||
def copy(self) -> VMobject:
|
||||
result = super().copy()
|
||||
def copy(self, deep: bool = False) -> VMobject:
|
||||
result = super().copy(deep)
|
||||
result.shader_wrapper_list = [sw.copy() for sw in self.shader_wrapper_list]
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue