Skip to content

Commit

Permalink
Common/MV: Make indentation easier on the eyes.
Browse files Browse the repository at this point in the history
We may want to use an automatic indenter in the near future to take care of
some other inconsistencies in the code.

Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
  • Loading branch information
Rogério Brito committed Jul 18, 2015
1 parent f6acfc1 commit da83565
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Common/MV.js
Original file line number Diff line number Diff line change
Expand Up @@ -932,10 +932,13 @@ function normalMatrix(m, flag)
{
var a = mat4();
a = inverse(transpose(m));
if(flag != true) return a;
if (flag != true)
return a;

var b = mat3();
for(var i=0;i<3;i++) for(var j=0; j<3; j++) b[i][j] = a[i][j];
for (var i=0;i<3;i++)
for(var j=0; j<3; j++)
b[i][j] = a[i][j];
return b;

}

0 comments on commit da83565

Please sign in to comment.