mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 22:07:51 +00:00
Fix bug in ShowSubmobjectsOneByOne
This commit is contained in:
parent
407c53f97c
commit
bcd09906be
1 changed files with 1 additions and 5 deletions
|
|
@ -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...
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue