Bug in CreateAndStartAnimation()

I may have found a bug in BABYLON.Animation.CreateAndStartAnimation().

Since 1 year I use CreateAndStartAnimation() with no problem and use Babylon-version 7.35.1 the animation with CreateAndStartAnimation() start and stop correct. Today I update my project to Babylon 7.43.0 and now the animation does no stop anymore!

Here is a playground-example which shows the bug:

See lines 28 to 32, the camera-alpha value should animate from 0 to 1 and then stop.
With version 7.43.0 it animates from 0-1 then from 1-2 from 2-3 and so on …

Does the function maybe have changed? I can not find some hints for that …

Thx :slight_smile:

2 Likes

May be related to this: Animation Helper - #3 by Joe_Kerr (breaking change)?

If so, better use the enum for the loop mode.

1 Like

THX, yes with loopmode = 2 and it works again (old behavior uses 0 for no loop).

Maybe the documentation with: default loopmode = “loopmode off” may be a little bit confusion (off = 0 in most cases).

I have also encountered the same problem, is there a solution

:wink:

2 Likes