From eb55609871a294aec8ca8cc6dbb248dedc77f00b Mon Sep 17 00:00:00 2001 From: George Bateman Date: Tue, 17 Jan 2017 17:21:02 +0000 Subject: [PATCH] Fix #4826. PShape in Java2D wasn't respecting kind. Reverses commit 6695215a7d40345bc62a49e663b1b75060eaac1c. --- core/src/processing/core/PShape.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/processing/core/PShape.java b/core/src/processing/core/PShape.java index 05bc4e18a..7d6f1d7a5 100644 --- a/core/src/processing/core/PShape.java +++ b/core/src/processing/core/PShape.java @@ -1604,9 +1604,9 @@ public class PShape implements PConstants { } else if (family == PRIMITIVE) { drawPrimitive(g); } else if (family == GEOMETRY) { - // same as path - drawPath(g); -// drawGeometry(g); + // Not same as path: `kind` matters. +// drawPath(g); + drawGeometry(g); } else if (family == PATH) { drawPath(g); } @@ -3442,4 +3442,4 @@ public class PShape implements PConstants { calcAlpha = (calcAi != 255); } -} \ No newline at end of file +}