mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 10:55:38 +01:00
reset curveVertexCount when tessellating a polygon PShape
This commit is contained in:
@@ -2069,6 +2069,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
shape = kind;
|
||||
inGeo.clear();
|
||||
|
||||
curveVertexCount = 0;
|
||||
breakShape = false;
|
||||
defaultEdges = true;
|
||||
|
||||
@@ -10249,6 +10250,10 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
transformScale = -1;
|
||||
}
|
||||
|
||||
void resetCurveVertexCount() {
|
||||
pg.curveVertexCount = 0;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
//
|
||||
// Point tessellation
|
||||
@@ -11983,7 +11988,6 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
vertex[X] = in.vertices[3*i + 0];
|
||||
vertex[Y] = in.vertices[3*i + 1];
|
||||
vertex[Z] = in.vertices[3*i + 2];
|
||||
|
||||
pg.curveVertexCount++;
|
||||
|
||||
// draw a segment if there are enough points
|
||||
|
||||
Reference in New Issue
Block a user