mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
No need to set flat stroke defaults in Polygon/Polyline
This commit is contained in:
parent
abbe131e8d
commit
b16f0981f6
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue