diff --git a/manimlib/mobject/types/vectorized_mobject.py b/manimlib/mobject/types/vectorized_mobject.py index bdb95b37..86ab5426 100644 --- a/manimlib/mobject/types/vectorized_mobject.py +++ b/manimlib/mobject/types/vectorized_mobject.py @@ -151,7 +151,7 @@ class VMobject(Mobject): sm.set_stroke(color, width, opacity, background, family) self.update_rgbas_array("stroke_rgbas", color, opacity) if width is not None: - self.stroke_width = np.array(listify(width)) + self.stroke_width = np.array(listify(width), dtype=float) if background is not None: self.draw_stroke_behind_fill = background return self