mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
fix #1990
This commit is contained in:
@@ -353,7 +353,7 @@ public class PGraphics2D extends PGraphicsOpenGL {
|
||||
shape = new PShapeOpenGL(parent, PShape.PRIMITIVE);
|
||||
shape.setKind(RECT);
|
||||
} else if (kind == ELLIPSE) {
|
||||
if (len != 4) {
|
||||
if (len != 4 && len != 5) {
|
||||
showWarning("Wrong number of parameters");
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user