Skip to content

Commit b65b0f2

Browse files
authored
Fixed surface animations in OpenGL (#4286)
1 parent 4ddf777 commit b65b0f2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

manim/mobject/three_d/three_dimensions.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,21 @@ def __init__(
116116
) -> None:
117117
self.u_range = u_range
118118
self.v_range = v_range
119-
super().__init__(**kwargs)
119+
super().__init__(
120+
fill_color=fill_color,
121+
fill_opacity=fill_opacity,
122+
stroke_color=stroke_color,
123+
stroke_width=stroke_width,
124+
**kwargs,
125+
)
120126
self.resolution = resolution
121127
self.surface_piece_config = surface_piece_config
122-
self.fill_color: ManimColor = ManimColor(fill_color)
123-
self.fill_opacity = fill_opacity
124128
if checkerboard_colors:
125129
self.checkerboard_colors: list[ManimColor] = [
126130
ManimColor(x) for x in checkerboard_colors
127131
]
128132
else:
129133
self.checkerboard_colors = checkerboard_colors
130-
self.stroke_color: ManimColor = ManimColor(stroke_color)
131-
self.stroke_width = stroke_width
132134
self.should_make_jagged = should_make_jagged
133135
self.pre_function_handle_to_anchor_scale_factor = (
134136
pre_function_handle_to_anchor_scale_factor

0 commit comments

Comments
 (0)