Make sure stroke width is always a float

This commit is contained in:
Grant Sanderson
2021-10-11 06:23:03 -07:00
parent f22a341e84
commit 329d2c6eae

View File

@ -127,7 +127,7 @@ class VMobject(Mobject):
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: