فهرست منبع

Fix check for zero weight

Christine Morten 5 سال پیش
والد
کامیت
a32537a056
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/Animations/animatable.ts

+ 1 - 1
src/Animations/animatable.ts

@@ -876,7 +876,7 @@ Scene.prototype._processLateAnimationBindingsForQuaternions = function(holder: {
     let originalValue = holder.originalValue;
     let cumulativeQuaternion = refQuaternion;
 
-    if (holder.totalWeight !== 0 && holder.totalAdditiveWeight > 0) {
+    if (holder.totalWeight === 0 && holder.totalAdditiveWeight > 0) {
         cumulativeQuaternion.copyFrom(originalValue);
     } else if (holder.animations.length === 1) {
         Quaternion.SlerpToRef(originalValue, originalAnimation.currentValue, Math.min(1.0, holder.totalWeight), cumulativeQuaternion);