diff --git a/src/Animations/babylon.animation.ts b/src/Animations/babylon.animation.ts index fc59f24eeac..c8746ac14b3 100644 --- a/src/Animations/babylon.animation.ts +++ b/src/Animations/babylon.animation.ts @@ -453,6 +453,9 @@ var currentFrame = returnValue ? from + ratio % range : to; var currentValue = this._interpolate(currentFrame, repeatCount, this.loopMode, offsetValue, highLimitValue); + // Set value + this.setValue(currentValue); + // Check events for (var index = 0; index < this._events.length; index++) { if (currentFrame >= this._events[index].frame) { @@ -472,9 +475,6 @@ } } - // Set value - this.setValue(currentValue); - if (!returnValue) { this._stopped = true; }