added mode to primitive PShape of type ARC

This commit is contained in:
codeanticode
2013-02-16 19:32:01 -05:00
parent a3bed72e78
commit b52563aed2
3 changed files with 10 additions and 6 deletions

View File

@@ -260,7 +260,7 @@ public class PGraphics3D extends PGraphicsOpenGL {
shape = new PShapeOpenGL(parent, PShape.PRIMITIVE);
shape.setKind(ELLIPSE);
} else if (kind == ARC) {
if (len != 6) {
if (len != 6 && len != 7) {
showWarning("Wrong number of parameters");
return null;
}