Animating skeleton now also applies to cloned meshes in BabylonJS 5

Now if I clone the mesh and start animation on the skeleton of original mesh, cloned mesh also starts to be animated. It was different in the BabylonJS 4.2 branch. Bug or intended behavior?
How to avoid this in BabylonJS 5+?

Try to switch between 4.2.X and the latest version (5.14.0 at the moment).

cc @bghgary for that one

Intended. I made this change. Cloning will now copy the skeleton property of the mesh such that it will point to the same skeleton. Before, the skeleton property was being dropped which doesn’t make sense.

You can simply set the skeleton property back to null.

1 Like