mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Update mobject.py
This commit is contained in:
parent
c94ebaa260
commit
b1ed16e81a
1 changed files with 2 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue