Animation event not being executed when animation has only single key frame

When animation has only single key frame, the event attached is not executed.
If animation has more than one key frame, event will get executed correctly.

For now, i manually check imported animations and add one empty key frame that does nothing to as workaround.

I think @carolhmj is looking into this.

Here’s the PR: fix animation events not firing for 1 key animations by carolhmj · Pull Request #14715 · BabylonJS/Babylon.js (github.com)

Note that, if the animation only has 1 frame, it will only be possible to fire an event on that frame (so, if the only frame is 0, you can only fire an event on 0, if it’s only 10, you can only fire an event in 10, etc)

3 Likes