From f9a6fa7036e6e6ef78a9f7eaa9174fa9d44bbcc7 Mon Sep 17 00:00:00 2001 From: Bill Xi <86190295+BillyLikesHacking@users.noreply.github.com> Date: Sun, 31 Oct 2021 18:35:28 +0800 Subject: [PATCH] Update mobject.py --- manimlib/mobject/mobject.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/manimlib/mobject/mobject.py b/manimlib/mobject/mobject.py index 8532b42f..c7cc16b7 100644 --- a/manimlib/mobject/mobject.py +++ b/manimlib/mobject/mobject.py @@ -1594,14 +1594,7 @@ class Group(Mobject): Mobject.__init__(self, **kwargs) self.add(*mobjects) def __add__(self, other : 'Mobject' or 'Group'): - assert(isinstance(other, Mobject)) - if other in self: - return Group(*self, other.copy()) - if isinstance(other, (Group, VGroup)): - if all([isinstance(i, VMobject) for i in Group(*self, *other)]): - return VGroup(*self, *other) - return Group(*self, *other) - return Group(*self, other) + return self.add(other) class Point(Mobject):