mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Make sure AnimationGroup plays nicely with setting mobject animation status
This commit is contained in:
parent
b09e6916dc
commit
fdeab8ca95
1 changed files with 2 additions and 0 deletions
|
@ -50,11 +50,13 @@ class AnimationGroup(Animation):
|
||||||
return self.group
|
return self.group
|
||||||
|
|
||||||
def begin(self) -> None:
|
def begin(self) -> None:
|
||||||
|
self.group.set_animating_status(True)
|
||||||
for anim in self.animations:
|
for anim in self.animations:
|
||||||
anim.begin()
|
anim.begin()
|
||||||
# self.init_run_time()
|
# self.init_run_time()
|
||||||
|
|
||||||
def finish(self) -> None:
|
def finish(self) -> None:
|
||||||
|
self.group.set_animating_status(False)
|
||||||
for anim in self.animations:
|
for anim in self.animations:
|
||||||
anim.finish()
|
anim.finish()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue