Marshall Quander před 7 roky
rodič
revize
2eb9a128e2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      test/benchmark/core/TriangleClosestPoint.js

+ 1 - 1
test/benchmark/core/TriangleClosestPoint.js

@@ -52,7 +52,7 @@
   s.add('9^3 points, 20 triangles', function() {
     var target = new THREE.Vector3();
     for (var tidx = 0; tidx < triangles.length; tidx++) {
-      triangle = triangles[tidx];
+      var triangle = triangles[tidx];
       for (var pidx = 0; pidx < testPoints.length; pidx++) {
         triangle.closestPointToPoint(testPoints[pidx], target);
       }