update tessellation for path shapes as well

This commit is contained in:
codeanticode
2013-06-03 11:43:02 -04:00
parent 9d4da2fa3f
commit ae8b59d7b8

View File

@@ -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;