From b1ed16e81afc33720353f3442c1e68275d1da2b7 Mon Sep 17 00:00:00 2001 From: BillyLikesHacking <86190295+BillyLikesHacking@users.noreply.github.com> Date: Fri, 22 Oct 2021 20:46:47 +0800 Subject: [PATCH] Update mobject.py --- manimlib/mobject/mobject.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index 8ca79c69..dafba973 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -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):