mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 05:24:22 +08:00
Add deep option to VMobject.copy
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user