diff --git a/manim/mobject/opengl/opengl_vectorized_mobject.py b/manim/mobject/opengl/opengl_vectorized_mobject.py index df2471f5f1..b06e6e1e83 100644 --- a/manim/mobject/opengl/opengl_vectorized_mobject.py +++ b/manim/mobject/opengl/opengl_vectorized_mobject.py @@ -279,7 +279,10 @@ def set_stroke( if width is not None: for mob in self.get_family(recurse): - mob.stroke_width = np.array([[width] for width in tuplify(width)]) + if isinstance(width, np.ndarray): + mob.stroke_width = width + else: + mob.stroke_width = np.array([[width] for width in tuplify(width)]) if background is not None: for mob in self.get_family(recurse):