浏览代码

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);
         }