瀏覽代碼

Export the animation name to gltf2

Minmin Gong 4 年之前
父節點
當前提交
d57b78bc98
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      code/AssetLib/glTF2/glTF2Exporter.cpp

+ 1 - 0
code/AssetLib/glTF2/glTF2Exporter.cpp

@@ -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];