mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
update tessellation for path shapes as well
This commit is contained in:
@@ -1448,8 +1448,9 @@ public class PShapeOpenGL extends PShape {
|
||||
public int getVertexCount() {
|
||||
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
|
||||
if (family == PRIMITIVE || family == PATH) {
|
||||
// the input geometry of primitive and path shapes is built during
|
||||
// tessellation
|
||||
updateTessellation();
|
||||
}
|
||||
return inGeo.vertexCount;
|
||||
|
||||
Reference in New Issue
Block a user