Explorar o código

Handle tension=0

Fix Issue #19757
dskeithbuck %!s(int64=5) %!d(string=hai) anos
pai
achega
3968d51062
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/extras/curves/CatmullRomCurve3.js

+ 1 - 1
src/extras/curves/CatmullRomCurve3.js

@@ -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;
 
 }