Skip to content

Commit 329d2c6

Browse files
committed
Make sure stroke width is always a float
1 parent f22a341 commit 329d2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manimlib/mobject/types/vectorized_mobject.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def set_stroke(self, color=None, width=None, opacity=None, background=None, recu
127127
if isinstance(width, np.ndarray):
128128
arr = width.reshape((len(width), 1))
129129
else:
130-
arr = np.array([[w] for w in listify(width)])
130+
arr = np.array([[w] for w in listify(width)], dtype=float)
131131
mob.data['stroke_width'] = arr
132132

133133
if background is not None:

0 commit comments

Comments
 (0)