diff --git a/manim/mobject/opengl/opengl_vectorized_mobject.py b/manim/mobject/opengl/opengl_vectorized_mobject.py index 766c3029a9..c8e58da9a0 100644 --- a/manim/mobject/opengl/opengl_vectorized_mobject.py +++ b/manim/mobject/opengl/opengl_vectorized_mobject.py @@ -283,7 +283,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 not isinstance(width, np.ndarray): + mob.stroke_width = np.array([[width] for width in tuplify(width)]) + else: + mob.stroke_width = width if background is not None: for mob in self.get_family(recurse):