Skip to content

Commit 0b01116

Browse files
authored
Merge pull request #7201 from diyaayay/Caps-at-beg-of-curve
Caps at the beginning of the curve
2 parents fb068f7 + 50f609d commit 0b01116

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/webgl/3d_primitives.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2984,7 +2984,7 @@ p5.RendererGL.prototype.bezierVertex = function(...args) {
29842984
this._lookUpTableBezier = [];
29852985
this._lutBezierDetail = this._pInst._curveDetail;
29862986
const step = 1 / this._lutBezierDetail;
2987-
let start = 0;
2987+
let start = step;
29882988
let end = 1;
29892989
let j = 0;
29902990
while (start < 1) {
@@ -3144,7 +3144,7 @@ p5.RendererGL.prototype.quadraticVertex = function(...args) {
31443144
this._lookUpTableQuadratic = [];
31453145
this._lutQuadraticDetail = this._pInst._curveDetail;
31463146
const step = 1 / this._lutQuadraticDetail;
3147-
let start = 0;
3147+
let start = step;
31483148
let end = 1;
31493149
let j = 0;
31503150
while (start < 1) {
@@ -3288,7 +3288,7 @@ p5.RendererGL.prototype.curveVertex = function(...args) {
32883288
this._lookUpTableBezier = [];
32893289
this._lutBezierDetail = this._pInst._curveDetail;
32903290
const step = 1 / this._lutBezierDetail;
3291-
let start = 0;
3291+
let start = step;
32923292
let end = 1;
32933293
let j = 0;
32943294
while (start < 1) {

0 commit comments

Comments
 (0)