فهرست منبع

GC improvement

David Catuhe 7 سال پیش
والد
کامیت
ec6ea70e34
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/babylon.scene.ts

+ 1 - 1
src/babylon.scene.ts

@@ -2808,7 +2808,7 @@
                     continue;
                 }
                 cumulativeAmount += weights[index];
-                cumulativeQuaternion = Quaternion.Slerp(cumulativeQuaternion, quaternions[index], weights[index] / cumulativeAmount);
+                Quaternion.SlerpToRef(cumulativeQuaternion, quaternions[index], weights[index] / cumulativeAmount, cumulativeQuaternion);
                 index++;
             }