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)
|
Mobject.__init__(self, **kwargs)
|
||||||
self.add(*mobjects)
|
self.add(*mobjects)
|
||||||
def __add__(self, other : 'Mobject' or 'Group'):
|
def __add__(self, other : 'Mobject' or 'Group'):
|
||||||
assert(isinstance(other, Mobject))
|
return self.add(other)
|
||||||
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)
|
|
||||||
|
|
||||||
|
|
||||||
class Point(Mobject):
|
class Point(Mobject):
|
||||||
|
|
Loading…
Add table
Reference in a new issue