From 4eabaecfc818190477aff07c49485e77ba49da86 Mon Sep 17 00:00:00 2001 From: Bill Xi <86190295+BillyLikesHacking@users.noreply.github.com> Date: Sun, 31 Oct 2021 18:34:23 +0800 Subject: [PATCH] Update mobject.py --- manimlib/mobject/mobject.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index dafba973..8532b42f 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -83,14 +83,10 @@ class Mobject(object): return self.__class__.__name__ def __add__(self, other : 'Mobject'): - assert(isinstance(other, Mobject)) return Group(self, other) def __mul__(self, other : 'int'): - from manimlib.mobject.types.vectorized_mobject import VMobject, VGroup - if isinstance(self, VMobject): - return VGroup(*[self.copy() for i in range(other)]) - return Group(*[mob.copy() for mob in range(other)]) + return self.replicate(other) def init_data(self): self.data = {