Browse Source

One more variable rename from PR feedback

Michael Dahrea 8 years ago
parent
commit
7f6f40620d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      loaders/src/glTF/2.0/babylon.glTFLoader.ts

+ 2 - 2
loaders/src/glTF/2.0/babylon.glTFLoader.ts

@@ -581,8 +581,8 @@ module BABYLON.GLTF2 {
             else {
                 // Set indices on the fly
                 var indices: number[] = [];
-                for (var positionsIndex = 0; positionsIndex < tempVertexData.positions.length / 3; positionsIndex++) {
-                    indices.push(positionsIndex);
+                for (var index = 0; index < tempVertexData.positions.length / 3; index++) {
+                    indices.push(index);
                 }
 
                 tempVertexData.indices = new Int32Array(indices);