mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 11:03:03 +08:00
No need to set flat stroke defaults in Polygon/Polyline
This commit is contained in:
@ -918,10 +918,9 @@ class Polygon(VMobject):
|
||||
def __init__(
|
||||
self,
|
||||
*vertices: Vect3,
|
||||
flat_stroke: bool = True,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(flat_stroke=flat_stroke, **kwargs)
|
||||
super().__init__(**kwargs)
|
||||
self.set_points_as_corners([*vertices, vertices[0]])
|
||||
|
||||
def get_vertices(self) -> Vect3Array:
|
||||
@ -967,10 +966,9 @@ class Polyline(VMobject):
|
||||
def __init__(
|
||||
self,
|
||||
*vertices: Vect3,
|
||||
flat_stroke: bool = True,
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(flat_stroke=flat_stroke, **kwargs)
|
||||
super().__init__(**kwargs)
|
||||
self.set_points_as_corners(vertices)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user