From d57b78bc984446e6a8abdd95f8c7540752b324ec Mon Sep 17 00:00:00 2001 From: Minmin Gong Date: Tue, 16 Feb 2021 20:08:22 -0800 Subject: [PATCH] Export the animation name to gltf2 --- code/AssetLib/glTF2/glTF2Exporter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/AssetLib/glTF2/glTF2Exporter.cpp b/code/AssetLib/glTF2/glTF2Exporter.cpp index 10525e028..e34125258 100644 --- a/code/AssetLib/glTF2/glTF2Exporter.cpp +++ b/code/AssetLib/glTF2/glTF2Exporter.cpp @@ -1388,6 +1388,7 @@ void glTF2Exporter::ExportAnimations() nameAnim = anim->mName.C_Str(); } Ref animRef = mAsset->animations.Create(nameAnim); + animRef->name = nameAnim; for (unsigned int channelIndex = 0; channelIndex < anim->mNumChannels; ++channelIndex) { const aiNodeAnim* nodeChannel = anim->mChannels[channelIndex];