Added animationEnded callback to AnimatedMesh.