Skip to content

Commit

Permalink
Make sure stroke width is always a float
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Oct 11, 2021
1 parent f22a341 commit 329d2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manimlib/mobject/types/vectorized_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def set_stroke(self, color=None, width=None, opacity=None, background=None, recu
if isinstance(width, np.ndarray):
arr = width.reshape((len(width), 1))
else:
arr = np.array([[w] for w in listify(width)])
arr = np.array([[w] for w in listify(width)], dtype=float)
mob.data['stroke_width'] = arr

if background is not None:
Expand Down

0 comments on commit 329d2c6

Please sign in to comment.