From 22cb561d5fc18a2ee670944a2d32e44f47cc6984 Mon Sep 17 00:00:00 2001 From: Henrik Skov Midtiby Date: Sat, 19 Jul 2025 23:44:20 +0200 Subject: [PATCH] Fix the TypeError: object of type 'float' has no len() on Line3D during play(FadeIn) #4337 --- manim/mobject/three_d/three_dimensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manim/mobject/three_d/three_dimensions.py b/manim/mobject/three_d/three_dimensions.py index d87bf420f4..4024788278 100644 --- a/manim/mobject/three_d/three_dimensions.py +++ b/manim/mobject/three_d/three_dimensions.py @@ -128,7 +128,7 @@ def __init__( else: self.checkerboard_colors = checkerboard_colors self.stroke_color: ManimColor = ManimColor(stroke_color) - self.stroke_width = stroke_width + self.stroke_width = np.array(stroke_width, ndmin=1) self.should_make_jagged = should_make_jagged self.pre_function_handle_to_anchor_scale_factor = ( pre_function_handle_to_anchor_scale_factor