Browse Source

Animation Properties Override Fix

Fix Animation Properties Override LoopMode
MackeyK24 7 years ago
parent
commit
1481b82936
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Animations/babylon.runtimeAnimation.ts

+ 1 - 1
src/Animations/babylon.runtimeAnimation.ts

@@ -234,7 +234,7 @@
 
 
         private _getCorrectLoopMode(): number | undefined {
         private _getCorrectLoopMode(): number | undefined {
             if ( this._target && this._target.animationPropertiesOverride) {
             if ( this._target && this._target.animationPropertiesOverride) {
-                return this._target.loopMode;
+                return this._target.animationPropertiesOverride.loopMode;
             }
             }
 
 
             return this._animation.loopMode;
             return this._animation.loopMode;