mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Update vectorized_mobject.py
This commit is contained in:
parent
82540edae9
commit
b285ca7c22
1 changed files with 0 additions and 7 deletions
|
@ -995,13 +995,6 @@ class VGroup(VMobject):
|
|||
self.add(*vmobjects)
|
||||
|
||||
def __add__(self:'VGroup', other : 'VMobject' or 'VGroup'):
|
||||
assert(isinstance(other, VMobject))
|
||||
if isinstance(other, VGroup):
|
||||
return VGroup(*self, *other)
|
||||
if isinstance(other, Mobject):
|
||||
return Group(*self) + other
|
||||
if other in self:
|
||||
return self.add(other.copy())
|
||||
return self.add(other)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue