mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Update manimlib/mobject/mobject.py
Small bug fix to Mobject.__add__
This commit is contained in:
parent
77159eea2e
commit
f0b5181694
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class Mobject(object):
|
||||||
|
|
||||||
def __add__(self, other : 'Mobject') -> 'Mobject':
|
def __add__(self, other : 'Mobject') -> 'Mobject':
|
||||||
assert(isinstance(other, Mobject))
|
assert(isinstance(other, Mobject))
|
||||||
return self.get_group_class(self, other)
|
return self.get_group_class()(self, other)
|
||||||
|
|
||||||
def __mul__(self, other : 'int') -> 'Mobject':
|
def __mul__(self, other : 'int') -> 'Mobject':
|
||||||
assert(isinstance(other, int))
|
assert(isinstance(other, int))
|
||||||
|
|
Loading…
Add table
Reference in a new issue