mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Create mobject.py
This commit is contained in:
parent
b531c82bc4
commit
01f4ef3e5d
1 changed files with 2 additions and 0 deletions
|
@ -1595,7 +1595,9 @@ class Group(Mobject):
|
||||||
raise Exception("All submobjects must be of type Mobject")
|
raise Exception("All submobjects must be of type 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)
|
return self.add(other)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue