mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Fix issues with stroke opacities passed as numpy arrays
This commit is contained in:
parent
d21b05ae0d
commit
4be7f611ec
1 changed files with 1 additions and 1 deletions
|
@ -1334,7 +1334,7 @@ class Mobject(object):
|
|||
rgbs = resize_with_interpolation(rgbs, len(data))
|
||||
data[name][:, :3] = rgbs
|
||||
if opacity is not None:
|
||||
if isinstance(opacity, list):
|
||||
if not isinstance(opacity, (float, int)):
|
||||
opacity = resize_with_interpolation(np.array(opacity), len(data))
|
||||
data[name][:, 3] = opacity
|
||||
return self
|
||||
|
|
Loading…
Add table
Reference in a new issue