Quantcast
Channel: Bugs Latest Topics
Viewing all articles
Browse latest Browse all 760

OnAnimEnd in version 2.5

$
0
0

Hi guys, I'm not sure that is a bug, but I don't know where I can ask it, on github I did not find the section with issues, sorry 

In previously version of the babylon, it seems it was version 2.5 - alpha, I used function beginAnimation and parameter OnAnimEnd.

I have an animation of the fire from gun (30 frames). Always when I run the animation of the fire, I passed a parameter OnAnimEnd = function() { console.log("anim end") }, then I very fast clicked the button for the fire and all parameters functions OnAnimEnd called at different times one by one as it should be.

But in new version of babylon - 2.5. I don't changed my code, just updated version of babylon. All functions OnAnimEnd calls at the same time. If I click fire and animation started, then I do not wait for anomation end and clicked fire again and immediately I get console.log("anim end") twice, and after that second animation of fire yet playing and when this animation will end, function OnAnimEnd already been in past. I hope my English not very difficult to anderstand :)


Viewing all articles
Browse latest Browse all 760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>