save the sphere detail from the renderer when creating a PShape (or pass

it as a parameter to createShape)
This commit is contained in:
codeanticode
2013-08-25 13:54:12 -04:00
parent 764be11cc9
commit 6bd22196b7
3 changed files with 15 additions and 5 deletions

View File

@@ -277,7 +277,7 @@ public class PGraphics3D extends PGraphicsOpenGL {
shape = new PShapeOpenGL(parent, PShape.PRIMITIVE);
shape.setKind(BOX);
} else if (kind == SPHERE) {
if (len != 1) {
if (len < 1 || 3 < len) {
showWarning("Wrong number of parameters");
return null;
}