Skip to content

Commit

Permalink
Handle tension=0
Browse files Browse the repository at this point in the history
Fix Issue mrdoob#19757
  • Loading branch information
dskeithbuck authored and beginor committed Aug 25, 2020
1 parent 8c4d42d commit 65e45b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extras/curves/CatmullRomCurve3.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function CatmullRomCurve3( points, closed, curveType, tension ) {
this.points = points || [];
this.closed = closed || false;
this.curveType = curveType || 'centripetal';
this.tension = tension || 0.5;
this.tension = ( tension !== undefined ) ? tension : 0.5;

}

Expand Down

0 comments on commit 65e45b5

Please sign in to comment.