Browse Source

typo bug in getPoints (#9265)

rfm1201 9 years ago
parent
commit
a27e1baf35
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/extras/core/CurvePath.js

+ 1 - 1
src/extras/core/CurvePath.js

@@ -165,7 +165,7 @@ THREE.CurvePath.prototype = Object.assign( Object.create( THREE.Curve.prototype
 			var curve = curves[ i ];
 			var resolution = curve instanceof THREE.EllipseCurve ? divisions * 2
 				: curve instanceof THREE.LineCurve ? 1
-				: curve instanceof THREE.SplineCurve ? divisions * curves.points.length
+				: curve instanceof THREE.SplineCurve ? divisions * curve.points.length
 				: divisions;
 
 			var pts = curve.getPoints( resolution );