From ae8b59d7b812ab9050372eb282ecf28545cef21f Mon Sep 17 00:00:00 2001 From: codeanticode Date: Mon, 3 Jun 2013 11:43:02 -0400 Subject: [PATCH] update tessellation for path shapes as well --- core/src/processing/opengl/PShapeOpenGL.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/processing/opengl/PShapeOpenGL.java b/core/src/processing/opengl/PShapeOpenGL.java index e194d0eb3..0d9cbd2fe 100644 --- a/core/src/processing/opengl/PShapeOpenGL.java +++ b/core/src/processing/opengl/PShapeOpenGL.java @@ -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;