Fix #4826. PShape in Java2D wasn't respecting kind.

Reverses commit 6695215a7d.
This commit is contained in:
George Bateman
2017-01-17 17:21:02 +00:00
parent 8cf1b56997
commit eb55609871

View File

@@ -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);
}
}
}