瀏覽代碼

typo bug in getPoints (#9265)

rfm1201 9 年之前
父節點
當前提交
a27e1baf35
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 );