mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
Fixing winding: PShapeOpenGL is solid by default
This commit is contained in:
@@ -173,7 +173,7 @@ public class PShapeOpenGL extends PShape {
|
||||
protected boolean needBufferInit = false;
|
||||
|
||||
// Flag to indicate if the shape can have holes or not.
|
||||
protected boolean solid;
|
||||
protected boolean solid = true;
|
||||
|
||||
protected boolean breakShape = false;
|
||||
protected boolean shapeCreated = false;
|
||||
@@ -2995,7 +2995,7 @@ public class PShapeOpenGL extends PShape {
|
||||
if (rounded) {
|
||||
saveBezierVertexSettings();
|
||||
inGeo.addRect(a, b, c, d, tl, tr, br, bl, stroke);
|
||||
tessellator.tessellatePolygon(false, true, true);
|
||||
tessellator.tessellatePolygon(true, true, true);
|
||||
restoreBezierVertexSettings();
|
||||
} else {
|
||||
inGeo.addRect(a, b, c, d, stroke);
|
||||
@@ -3289,7 +3289,7 @@ public class PShapeOpenGL extends PShape {
|
||||
saveCurveVertexSettings();
|
||||
tessellator.resetCurveVertexCount();
|
||||
}
|
||||
tessellator.tessellatePolygon(false, close, true);
|
||||
tessellator.tessellatePolygon(true, close, true);
|
||||
if (bez || quad) restoreBezierVertexSettings();
|
||||
if (curv) restoreCurveVertexSettings();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user