Skip to content

Commit 375c06a

Browse files
authored
Merge pull request #6580 from SlightlyEpic/polygon
Remove references to non-existant constant
2 parents a5fa292 + 83265fb commit 375c06a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/p5.Renderer2D.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ class Renderer2D extends p5.Renderer {
887887
}
888888
let i, j;
889889
const numVerts = vertices.length;
890-
if (isCurve && (shapeKind === constants.POLYGON || shapeKind === null)) {
890+
if (isCurve && shapeKind === null) {
891891
if (numVerts > 3) {
892892
const b = [],
893893
s = 1 - this._curveTightness;
@@ -923,7 +923,7 @@ class Renderer2D extends p5.Renderer {
923923
}
924924
} else if (
925925
isBezier &&
926-
(shapeKind === constants.POLYGON || shapeKind === null)
926+
shapeKind === null
927927
) {
928928
if (!this._clipping) this.drawingContext.beginPath();
929929
for (i = 0; i < numVerts; i++) {
@@ -947,7 +947,7 @@ class Renderer2D extends p5.Renderer {
947947
this._doFillStrokeClose(closeShape);
948948
} else if (
949949
isQuadratic &&
950-
(shapeKind === constants.POLYGON || shapeKind === null)
950+
shapeKind === null
951951
) {
952952
if (!this._clipping) this.drawingContext.beginPath();
953953
for (i = 0; i < numVerts; i++) {

0 commit comments

Comments
 (0)