Browse Source

fixed a run away variable in Curve.js

zz85 13 years ago
parent
commit
6b0579e266
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/extras/core/Curve.js

+ 4 - 1
src/extras/core/Curve.js

@@ -7,6 +7,7 @@
  * .getPointAt(u), getTagentAt(u)
  * .getPointAt(u), getTagentAt(u)
  * .getPoints(), .getSpacedPoints()
  * .getPoints(), .getSpacedPoints()
  * .getLength()
  * .getLength()
+ * .updateArcLengths()
  *
  *
  * This file contains following classes:
  * This file contains following classes:
  *
  *
@@ -25,6 +26,8 @@
  * THREE.SplineCurve3
  * THREE.SplineCurve3
  * THREE.ClosedSplineCurve3
  * THREE.ClosedSplineCurve3
  *
  *
+ * A series of curves can be represented as a THREE.CurvePath
+ *
  **/
  **/
 
 
 /**************************************************************
 /**************************************************************
@@ -221,7 +224,7 @@ THREE.Curve.prototype.getUtoTmapping = function ( u, distance ) {
 
 
     // add that fractional amount to t
     // add that fractional amount to t
 
 
-    t = ( i + segmentFraction ) / ( il -1 );
+    var t = ( i + segmentFraction ) / ( il -1 );
 
 
 	return t;
 	return t;