From aeb8f54230d4a2605db05256171581d12320bb72 Mon Sep 17 00:00:00 2001 From: Jakub Valtar Date: Mon, 20 Jul 2015 16:35:04 -0400 Subject: [PATCH] Remove duplicate curve vertex Fixes #2937 --- core/src/processing/opengl/PGraphicsOpenGL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index c6c8d37bd..48f738d0c 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -13083,7 +13083,7 @@ public class PGraphicsOpenGL extends PGraphics { } if (stroke) addStrokeVertex(x, y, z, strokeColor, strokeWeight); - for (int j = 0; j < pg.curveDetail; j++) { + for (int j = 0; j < pg.curveDetail - 1; j++) { x += xplot1; xplot1 += xplot2; xplot2 += xplot3; y += yplot1; yplot1 += yplot2; yplot2 += yplot3; z += zplot1; zplot1 += zplot2; zplot2 += zplot3;