Browse Source

Merge pull request #402 from Temechon/patch-26

Update babylon.animation.ts
David Catuhe 10 years ago
parent
commit
7cafd4a55d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Babylon/Animations/babylon.animation.ts

+ 2 - 2
Babylon/Animations/babylon.animation.ts

@@ -41,7 +41,7 @@
 
 
             mesh.animations.push(animation);
             mesh.animations.push(animation);
 
 
-            mesh.getScene().beginAnimation(mesh, 0, totalFrame,(animation.loopMode === 1));
+            return mesh.getScene().beginAnimation(mesh, 0, totalFrame,(animation.loopMode === 1));
 
 
         }
         }
 
 
@@ -395,4 +395,4 @@
             return Animation._ANIMATIONLOOPMODE_CONSTANT;
             return Animation._ANIMATIONLOOPMODE_CONSTANT;
         }
         }
     }
     }
-} 
+}