Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion manim/mobject/opengl/opengl_vectorized_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 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):
Expand Down
Loading