From 329d2c6eaec3d88bfb754b555575a3ea7c97a7e0 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 11 Oct 2021 06:23:03 -0700 Subject: [PATCH] Make sure stroke width is always a float --- manimlib/mobject/types/vectorized_mobject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index d1742709..69bfd0b9 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -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: