A bug in the MD2 key-framed animations, in JMonkeyEngine 2

Hi

I used JMonkeyEngine 2 during about one year, I found a bug in the key frame controller. At his time, I didn’t succeed in fixing it. When I switched to another engine, I ported this controller but this bug was still present. I fixed it yesterday, feel free to copy this fix into JMonkeyEngine 2, the commit is here.

I know that very few people still use key-framed animations but that’s not a reason to keep this bug in the source code.

The bug is reproducible only when the passed amount of time is greater than the amount of time separating 2 successive key frames. Keep in mind that weapons only have 173 frames. Best regards.

Edit.: You can thank Riven for his help as you can see here.

If you know of anyone who can commit to fixing this, we could probably just give that person temporary commit access. I doubt there are many people still around here with spare time to spend on jME2.

<cite>@erlend_sh said:</cite> If you know of anyone who can commit to fixing this, we could probably just give that person temporary commit access. I doubt there are many people still around here with spare time to spend on jME2.
I'll do it when I have a bit of time to work on JMonkeyEngine 2. Riven isn't the author of this fix but he assumed the bug came from the method findFrame() (he was right) and I found a clean fix for its caller.