Update mobject.py

This commit is contained in:
BillyLikesHacking
2021-10-22 20:46:47 +08:00
committed by GitHub
parent c94ebaa260
commit b1ed16e81a

View File

@ -87,8 +87,9 @@ class Mobject(object):
return Group(self, other)
def __mul__(self, other : 'int'):
from manimlib.mobject.types.vectorized_mobject import VMobject, VGroup
if isinstance(self, VMobject):
return VGroup(*[mob.copy() for mob in range(other)])
return VGroup(*[self.copy() for i in range(other)])
return Group(*[mob.copy() for mob in range(other)])
def init_data(self):