mirror of
https://github.com/processing/processing4.git
synced 2026-02-07 23:59:21 +01:00
Can use TRIANGLE and QUAD in createShape(type)
This commit is contained in:
@@ -1897,7 +1897,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
} else if (type == LINES) {
|
||||
shape = new PShape3D(parent, PShape.GEOMETRY);
|
||||
shape.setKind(LINES);
|
||||
} else if (type == TRIANGLES) {
|
||||
} else if (type == TRIANGLE || type == TRIANGLES) {
|
||||
shape = new PShape3D(parent, PShape.GEOMETRY);
|
||||
shape.setKind(TRIANGLES);
|
||||
} else if (type == TRIANGLE_FAN) {
|
||||
@@ -1906,7 +1906,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
} else if (type == TRIANGLE_STRIP) {
|
||||
shape = new PShape3D(parent, PShape.GEOMETRY);
|
||||
shape.setKind(TRIANGLE_STRIP);
|
||||
} else if (type == QUADS) {
|
||||
} else if (type == QUADS || type == QUADS) {
|
||||
shape = new PShape3D(parent, PShape.GEOMETRY);
|
||||
shape.setKind(QUADS);
|
||||
} else if (type == QUAD_STRIP) {
|
||||
|
||||
Reference in New Issue
Block a user