浏览代码

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);