mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
fix VShowPassingFlash index out of bounds issue
This commit is contained in:
parent
d8428585f8
commit
f0a61beaf5
1 changed files with 2 additions and 1 deletions
|
@ -244,6 +244,7 @@ class VShowPassingFlash(Animation):
|
|||
gaussian = np.exp(-0.5 * zs * zs)
|
||||
gaussian[abs(xs - mu) > 3 * sigma] = 0
|
||||
|
||||
if len(widths * gaussian) !=0:
|
||||
submobject.set_stroke(width=widths * gaussian)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue