Sfoglia il codice sorgente

Update babylon.animation.ts

Return the animatable for customization (onanimationEnd for example)
Temechon 10 anni fa
parent
commit
0fe4528f07
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Babylon/Animations/babylon.animation.ts

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

@@ -41,7 +41,7 @@
 
             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;
         }
     }
-} 
+}