Export the animation name to gltf2

pull/3659/head
Minmin Gong 2021-02-16 20:08:22 -08:00
parent 7be65aead7
commit d57b78bc98
1 changed files with 1 additions and 0 deletions

View File

@ -1388,6 +1388,7 @@ void glTF2Exporter::ExportAnimations()
nameAnim = anim->mName.C_Str();
}
Ref<Animation> animRef = mAsset->animations.Create(nameAnim);
animRef->name = nameAnim;
for (unsigned int channelIndex = 0; channelIndex < anim->mNumChannels; ++channelIndex) {
const aiNodeAnim* nodeChannel = anim->mChannels[channelIndex];