mirror of
https://github.com/3b1b/manim.git
synced 2025-08-03 04:04:36 +08:00
Update mobject.py
This commit is contained in:

committed by
GitHub

parent
c94ebaa260
commit
b1ed16e81a
@ -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):
|
||||
|
Reference in New Issue
Block a user