Skip to content

Commit e37bfa6

Browse files
authored
Merge pull request #7601 from Forchapeatl/patch-10
Fix endShape() to Properly Close Paths and Prevent Shape Merging
2 parents d820651 + d9cc368 commit e37bfa6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/p5.Renderer2D.js

+1
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ class Renderer2D extends Renderer {
264264
shape.accept(visitor);
265265
if (this._clipping) {
266266
this.clipPath.addPath(visitor.path);
267+
this.clipPath.closePath();
267268
} else {
268269
if (this.states.fillColor) {
269270
this.drawingContext.fill(visitor.path);

0 commit comments

Comments
 (0)