Explorar o código

Merge pull request #3659 from gongminmin/FixAnimName

Export the animation name to gltf2
Kim Kulling %!s(int64=4) %!d(string=hai) anos
pai
achega
3c79b12e02
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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];