Browse Source

Small fix for normal calculation

In certain cases, when provided an initial normal, the normal will be
calculated incorrectly. This fixes the issue. @jbousquie
Raanan Weber 9 years ago
parent
commit
7350ec50e1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Math/babylon.math.ts

+ 2 - 2
src/Math/babylon.math.ts

@@ -3566,8 +3566,8 @@
             }
             else {
                 normal0 = Vector3.Cross(vt, va);
-                Vector3.CrossToRef(normal0, vt, normal0);
-                //normal0 = Vector3.Cross(normal0, vt);
+                //Vector3.CrossToRef(normal0, vt, normal0);
+                normal0 = Vector3.Cross(normal0, vt);
             }
             normal0.normalize();
             return normal0;