Explorar o código

Fix check for zero weight

Christine Morten %!s(int64=5) %!d(string=hai) anos
pai
achega
a32537a056
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);