Format
This commit is contained in:
parent
94206f299e
commit
12121ab49f
1 changed files with 3 additions and 3 deletions
|
|
@ -148,9 +148,9 @@ export const PolygonFactory = (
|
||||||
private get actualVertices(): Array<vec2> {
|
private get actualVertices(): Array<vec2> {
|
||||||
return this.vertices.length < vertexCount
|
return this.vertices.length < vertexCount
|
||||||
? ([
|
? ([
|
||||||
...this.vertices,
|
...this.vertices,
|
||||||
...new Array(vertexCount - this.vertices.length).fill(this.vertices[0]),
|
...new Array(vertexCount - this.vertices.length).fill(this.vertices[0]),
|
||||||
] as Array<vec2>)
|
] as Array<vec2>)
|
||||||
: this.vertices;
|
: this.vertices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue