mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
reset curveVertexCount when tessellating a polygon PShape
This commit is contained in:
@@ -2662,7 +2662,10 @@ public class PShapeOpenGL extends PShape {
|
||||
boolean quad = inGeo.hasQuadraticVertex();
|
||||
boolean curv = inGeo.hasCurveVertex();
|
||||
if (bez || quad) saveBezierVertexSettings();
|
||||
if (curv) saveCurveVertexSettings();
|
||||
if (curv) {
|
||||
saveCurveVertexSettings();
|
||||
tessellator.resetCurveVertexCount();
|
||||
}
|
||||
tessellator.tessellatePolygon(solid, close,
|
||||
normalMode == NORMAL_MODE_AUTO);
|
||||
if (bez ||quad) restoreBezierVertexSettings();
|
||||
@@ -3182,7 +3185,10 @@ public class PShapeOpenGL extends PShape {
|
||||
boolean quad = inGeo.hasQuadraticVertex();
|
||||
boolean curv = inGeo.hasCurveVertex();
|
||||
if (bez || quad) saveBezierVertexSettings();
|
||||
if (curv) saveCurveVertexSettings();
|
||||
if (curv) {
|
||||
saveCurveVertexSettings();
|
||||
tessellator.resetCurveVertexCount();
|
||||
}
|
||||
tessellator.tessellatePolygon(false, close, true);
|
||||
if (bez || quad) restoreBezierVertexSettings();
|
||||
if (curv) restoreCurveVertexSettings();
|
||||
|
||||
Reference in New Issue
Block a user