mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Bug fix to AnimationGroup
This commit is contained in:
parent
e5411ea1f6
commit
0b7e4caf17
1 changed files with 2 additions and 2 deletions
|
@ -361,10 +361,10 @@ class AnimationGroup(Animation):
|
|||
everything = Mobject(*[a.mobject for a in sub_anims])
|
||||
Animation.__init__(self, everything, **kwargs)
|
||||
|
||||
def update(self, alpha):
|
||||
def update_mobject(self, alpha):
|
||||
for anim in self.sub_anims:
|
||||
sub_alpha = np.clip(alpha*anim.alpha_multiplier, 0, 1)
|
||||
anim.update(sub_alpha)
|
||||
anim.update_mobject(sub_alpha)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue