Kaynağa Gözat

Runtime Animation switch fallthrough

Jason Sturges 4 yıl önce
ebeveyn
işleme
aec79f5f0c
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      src/Animations/runtimeAnimation.ts

+ 4 - 0
src/Animations/runtimeAnimation.ts

@@ -529,15 +529,19 @@ export class RuntimeAnimation {
                     // Vector3
                     case Animation.ANIMATIONTYPE_VECTOR3:
                         this._offsetsCache[keyOffset] = toValue.subtract(fromValue);
+                        break;
                     // Vector2
                     case Animation.ANIMATIONTYPE_VECTOR2:
                         this._offsetsCache[keyOffset] = toValue.subtract(fromValue);
+                        break;
                     // Size
                     case Animation.ANIMATIONTYPE_SIZE:
                         this._offsetsCache[keyOffset] = toValue.subtract(fromValue);
+                        break;
                     // Color3
                     case Animation.ANIMATIONTYPE_COLOR3:
                         this._offsetsCache[keyOffset] = toValue.subtract(fromValue);
+                        break;
                     default:
                         break;
                 }