소스 검색

removing high limit conditional from runtime _interpolate function

Kacey Coley 7 년 전
부모
커밋
0c967b5d47
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      src/Animations/babylon.runtimeAnimation.ts

+ 0 - 4
src/Animations/babylon.runtimeAnimation.ts

@@ -202,10 +202,6 @@
          * @returns The interpolated value
          */
         private _interpolate(currentFrame: number, repeatCount: number, loopMode?: number, offsetValue?: any, highLimitValue?: any): any {
-            if (loopMode === Animation.ANIMATIONLOOPMODE_CONSTANT && repeatCount > 0) {
-                return highLimitValue.clone ? highLimitValue.clone() : highLimitValue;
-            }
-
             this._currentFrame = currentFrame;
             return this._animation._interpolate(currentFrame, repeatCount, this._workValue, loopMode, offsetValue, highLimitValue);
         }