mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
save the sphere detail from the renderer when creating a PShape (or pass
it as a parameter to createShape)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user