Skip to content

Commit 9576350

Browse files
committed
add let to define i
1 parent 3a86e84 commit 9576350

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Libraries/Utilities/MatrixMath.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ const MatrixMath = {
640640
// Now get scale and shear.
641641
// 'row' is a 3 element array of 3 component vectors
642642
const row = [];
643-
for (i = 0; i < 3; i++) {
643+
for (let i = 0; i < 3; i++) {
644644
row[i] = [matrix[i][0], matrix[i][1], matrix[i][2]];
645645
}
646646

@@ -678,7 +678,7 @@ const MatrixMath = {
678678
// is -1, then negate the matrix and the scaling factors.
679679
const pdum3 = MatrixMath.v3Cross(row[1], row[2]);
680680
if (MatrixMath.v3Dot(row[0], pdum3) < 0) {
681-
for (i = 0; i < 3; i++) {
681+
for (let i = 0; i < 3; i++) {
682682
scale[i] *= -1;
683683
row[i][0] *= -1;
684684
row[i][1] *= -1;

0 commit comments

Comments
 (0)