mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
vertices array sometimes shorter, though this is hiding issue elsewhere
This commit is contained in:
@@ -1756,7 +1756,7 @@ public class PShape implements PConstants {
|
||||
} else {
|
||||
for (int i = 0; i < vertexCount; i++) {
|
||||
float[] vert = vertices[i];
|
||||
if (vert[Z] == 0) {
|
||||
if (vert.length < 3 || vert[Z] == 0) {
|
||||
g.vertex(vert[X], vert[Y]);
|
||||
} else {
|
||||
g.vertex(vert[X], vert[Y], vert[Z]);
|
||||
|
||||
Reference in New Issue
Block a user