# Animation Helper

**URL:** <https://forum.babylonjs.com/t/animation-helper/55938>\
**Category:** Bugs\
**Created:** [January 13, 2025, 10:15am UTC](https://forum.babylonjs.com/t/animation-helper/55938 "2025-01-13T10:15:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Joe\_Kerr](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/joe_kerr/32/39017_2.png) [@Joe\_Kerr](https://forum.babylonjs.com/u/Joe_Kerr)\
**Post date:** [January 13, 2025, 11:48am UTC](https://forum.babylonjs.com/t/animation-helper/55938/3 "2025-01-13T11:48:24Z")

</div>

It seems like this is a bug or a breaking change:

[Loops modes](https://playground.babylonjs.com/#QYFDDP#649) are:

```auto
    console.assert(BABYLON.Animation.ANIMATIONLOOPMODE_RELATIVE === 0);
    console.assert(BABYLON.Animation.ANIMATIONLOOPMODE_CYCLE === 1);
    console.assert(BABYLON.Animation.ANIMATIONLOOPMODE_CONSTANT === 2);

```

Whereas this [commit](https://github.com/BabylonJS/Babylon.js/pull/16032/files) sets

```auto
//From
animation.loopMode === 1
//To
animation.loopMode !== Animation.ANIMATIONLOOPMODE_CONSTANT // 2!!

```

---

_[View the full topic](https://forum.babylonjs.com/t/animation-helper/55938)._
