File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ++ ) {
You can’t perform that action at this time.
0 commit comments