Skip to content

Commit 630bba7

Browse files
committed
Solution to issue 3562.
1 parent 855ea86 commit 630bba7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manim/mobject/opengl/opengl_vectorized_mobject.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,10 @@ def set_stroke(
283283

284284
if width is not None:
285285
for mob in self.get_family(recurse):
286-
mob.stroke_width = np.array([[width] for width in tuplify(width)])
286+
if isinstance(width, np.ndarray):
287+
mob.stroke_width = width
288+
else:
289+
mob.stroke_width = np.array([[width] for width in tuplify(width)])
287290

288291
if background is not None:
289292
for mob in self.get_family(recurse):

0 commit comments

Comments
 (0)