If you go https://three-d-f7212.web.app/ , you’ll find a small avatar customiser, but as you can see the replaced mesh doesn’t follow the animation, the code snippet responsible for the switch is
clicked(name:string){
const meshToRemove = this.scene.getMeshByName(name);
const meshToAdd:B.AbstractMesh = this.allCustomizations[name][1];///customization in containers
meshToAdd.skeleton = meshToRemove.skeleton;
meshToAdd.parent = meshToRemove.parent;
meshToAdd.animations = meshToRemove.animations;
this.scene.removeMesh(meshToRemove);
this.scene.addMesh(meshToAdd);
this.allCustomizations[name] = [meshToAdd,meshToRemove];
}
hope you understood what iam trying to achieve, what i am missing?