Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove references to non-existant constant #6580

Merged
merged 2 commits into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/core/p5.Renderer2D.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ class Renderer2D extends p5.Renderer {
}
let i, j;
const numVerts = vertices.length;
if (isCurve && (shapeKind === constants.POLYGON || shapeKind === null)) {
if (isCurve && shapeKind === null) {
if (numVerts > 3) {
const b = [],
s = 1 - this._curveTightness;
Expand Down Expand Up @@ -923,7 +923,7 @@ class Renderer2D extends p5.Renderer {
}
} else if (
isBezier &&
(shapeKind === constants.POLYGON || shapeKind === null)
shapeKind === null
) {
if (!this._clipping) this.drawingContext.beginPath();
for (i = 0; i < numVerts; i++) {
Expand All @@ -947,7 +947,7 @@ class Renderer2D extends p5.Renderer {
this._doFillStrokeClose(closeShape);
} else if (
isQuadratic &&
(shapeKind === constants.POLYGON || shapeKind === null)
shapeKind === null
) {
if (!this._clipping) this.drawingContext.beginPath();
for (i = 0; i < numVerts; i++) {
Expand Down