mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Update mobject.py
This commit is contained in:
parent
4eabaecfc8
commit
f9a6fa7036
1 changed files with 1 additions and 8 deletions
|
@ -1594,14 +1594,7 @@ class Group(Mobject):
|
|||
Mobject.__init__(self, **kwargs)
|
||||
self.add(*mobjects)
|
||||
def __add__(self, other : 'Mobject' or 'Group'):
|
||||
assert(isinstance(other, Mobject))
|
||||
if other in self:
|
||||
return Group(*self, other.copy())
|
||||
if isinstance(other, (Group, VGroup)):
|
||||
if all([isinstance(i, VMobject) for i in Group(*self, *other)]):
|
||||
return VGroup(*self, *other)
|
||||
return Group(*self, *other)
|
||||
return Group(*self, other)
|
||||
return self.add(other)
|
||||
|
||||
|
||||
class Point(Mobject):
|
||||
|
|
Loading…
Add table
Reference in a new issue