Rotation property animation for a GLB Model doesn't work

The Animation works perfectly for mesh created using MeshBuilder.CreateBox. but
the rotation animations just don’t work for the GLB mesh.

var animationTurnRight = new BABYLON.Animation(“MyAnimationMove”, “rotation.y”, frameRate,
BABYLON.Animation.ANIMATIONTYPE_FLOAT,
BABYLON.Animation.ANIMATIONLOOPMODE_CONSTANT);
var turnRightKeys = [
{
frame: 0,
value: 0
},
{
frame: 4*frameRate,
value: 0.5
},
];
scene.beginDirectAnimation(anim_model, [animationTurnRight], 0, 5 * frameRate, false,1);

Hey!
are you sure you are animating the right model? gltf models offer more than one mesh in the hierarchy

you can use scene.debugLayer.show() to see how it looks like