Explorar o código

Runtime Animation switch fallthrough

Jason Sturges %!s(int64=4) %!d(string=hai) anos
pai
achega
aec79f5f0c
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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;
                 }