소스 검색

Runtime Animation switch fallthrough

Jason Sturges 4 년 전
부모
커밋
aec79f5f0c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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;
                 }