Skip to content

Commit 7982e2f

Browse files
authored
Merge pull request #7583 from Forchapeatl/patch-8
Fix endShape() to Properly Close Paths and Prevent Shape Merging
2 parents a205e27 + ee20bb5 commit 7982e2f

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
@@ -1052,6 +1052,7 @@ class Renderer2D extends p5.Renderer {
10521052
}
10531053
}
10541054
this._doFillStrokeClose(closeShape);
1055+
this.drawingContext.closePath();
10551056
}
10561057
}
10571058
isCurve = false;

0 commit comments

Comments
 (0)