mirror of
https://github.com/3b1b/manim.git
synced 2025-07-31 14:03:59 +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")
|
raise Exception("All submobjects must be of type VMobject")
|
||||||
super().add(*vmobjects)
|
super().add(*vmobjects)
|
||||||
|
|
||||||
def copy(self) -> VMobject:
|
def copy(self, deep: bool = False) -> VMobject:
|
||||||
result = super().copy()
|
result = super().copy(deep)
|
||||||
result.shader_wrapper_list = [sw.copy() for sw in self.shader_wrapper_list]
|
result.shader_wrapper_list = [sw.copy() for sw in self.shader_wrapper_list]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user