From bcd09906bea5eaaa5352e7bee8f3153f434cf606 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 22 Nov 2021 08:05:59 -0800 Subject: [PATCH] Fix bug in ShowSubmobjectsOneByOne --- manimlib/animation/creation.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/manimlib/animation/creation.py b/manimlib/animation/creation.py index 6a69815f..8101b12a 100644 --- a/manimlib/animation/creation.py +++ b/manimlib/animation/creation.py @@ -174,16 +174,12 @@ class ShowSubmobjectsOneByOne(ShowIncreasingSubsets): "int_func": np.ceil, } - def __init__(self, group, **kwargs): - new_group = Group(*group) - super().__init__(new_group, **kwargs) - def update_submobject_list(self, index): # N = len(self.all_submobs) if index == 0: self.mobject.set_submobjects([]) else: - self.mobject.set_submobjects(self.all_submobs[index - 1]) + self.mobject.set_submobjects([self.all_submobs[index - 1]]) # TODO, this is broken...