mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
address regression reported in #1846
This commit is contained in:
@@ -1446,7 +1446,14 @@ public class PShapeOpenGL extends PShape {
|
||||
|
||||
@Override
|
||||
public int getVertexCount() {
|
||||
return family == GROUP ? 0 : inGeo.vertexCount;
|
||||
if (family == GROUP) return 0; // Group shapes don't have vertices
|
||||
else {
|
||||
if (family == PRIMITIVE) {
|
||||
// the input geometry of primitive shapes is built during tessellation
|
||||
updateTessellation();
|
||||
}
|
||||
return inGeo.vertexCount;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user