Update mobject.py

This commit is contained in:
Bill Xi
2021-10-31 18:37:12 +08:00
committed by GitHub
parent f9a6fa7036
commit 82540edae9

View File

@ -83,7 +83,7 @@ class Mobject(object):
return self.__class__.__name__ return self.__class__.__name__
def __add__(self, other : 'Mobject'): def __add__(self, other : 'Mobject'):
return Group(self, other) return self.get_group_class(self, other)
def __mul__(self, other : 'int'): def __mul__(self, other : 'int'):
return self.replicate(other) return self.replicate(other)