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 );