소스 검색

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