Преглед на файлове

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 години
родител
ревизия
7350ec50e1
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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;