AnimationGroup reset method unexpectedly triggers onAnimationGroupEndObservable

Hello everyone !

I found an issue while working with animation groups. Take a look at the playground :

As you can see, the first reset (in the timeout) doesn’t trigger the onAnimationGroupEndObservable.

However, when the animation ends, onAnimationGroupEndObservable triggers normally, but the reset method triggers it again. It effectively instantly crashes my playground by stack overflow, even though I would expect it to act as if i was using ANIMATIONLOOPMODE_CYCLE.

Here we are:
Fix animationGrup.reset endless loop by deltakosh · Pull Request #15339 · BabylonJS/Babylon.js (github.com)

Thanks a lot for the report!

2 Likes