Skip to content

Commit ef57497

Browse files
authored
removed closepath from beizer curve to last condition
1 parent b5901a6 commit ef57497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/p5.Renderer2D.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,6 @@ class Renderer2D extends p5.Renderer {
855855
this.drawingContext.lineTo(vertices[i + 1][0], vertices[i + 1][1]);
856856
}
857857
this._doFillStrokeClose(closeShape);
858-
this.drawingContext.closePath();
859858
}
860859
} else if (
861860
isBezier &&
@@ -1053,6 +1052,7 @@ class Renderer2D extends p5.Renderer {
10531052
}
10541053
}
10551054
this._doFillStrokeClose(closeShape);
1055+
this.drawingContext.closePath();
10561056
}
10571057
}
10581058
isCurve = false;

0 commit comments

Comments
 (0)