Playing an animationGroup backward gives an error

Hello guys,

Last one before going on vacation :slight_smile:

I’m play with the animation groups and modify on the fly how the animation should play.
Going frontward there is no issue but when trying to go backward I have an error.
I guess the keys index doesn’t exist.
I’m not sure if this was planned but here is a pg with the error reproduced

https://www.babylonjs-playground.com/#CBGEQX#17

This is the error displayed

TypeError: Cannot read property 'frame' of undefined

Here you go: https://www.babylonjs-playground.com/#CBGEQX#18

Ohhh, the speedratio needs to be inversed also.
That’s a bit weard no ?

At least it works :slight_smile:

I fixed it for the next commit :wink:

1 Like

Thank you all !