diff --git a/manim/mobject/three_d/three_dimensions.py b/manim/mobject/three_d/three_dimensions.py index 5732ebb98c..19bb1283f0 100644 --- a/manim/mobject/three_d/three_dimensions.py +++ b/manim/mobject/three_d/three_dimensions.py @@ -116,19 +116,21 @@ def __init__( ) -> None: self.u_range = u_range self.v_range = v_range - super().__init__(**kwargs) + super().__init__( + fill_color=fill_color, + fill_opacity=fill_opacity, + stroke_color=stroke_color, + stroke_width=stroke_width, + **kwargs, + ) self.resolution = resolution self.surface_piece_config = surface_piece_config - self.fill_color: ManimColor = ManimColor(fill_color) - self.fill_opacity = fill_opacity if checkerboard_colors: self.checkerboard_colors: list[ManimColor] = [ ManimColor(x) for x in checkerboard_colors ] else: self.checkerboard_colors = checkerboard_colors - self.stroke_color: ManimColor = ManimColor(stroke_color) - self.stroke_width = stroke_width self.should_make_jagged = should_make_jagged self.pre_function_handle_to_anchor_scale_factor = ( pre_function_handle_to_anchor_scale_factor