Explorar el Código

Merge pull request #3515 from LoicFr/master

glTF2Exporter: fix crash when exporting a scene with several meshes p…
Kim Kulling hace 4 años
padre
commit
10092cd1ec
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      code/AssetLib/glTF2/glTF2Exporter.cpp

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

@@ -1126,7 +1126,7 @@ void glTF2Exporter::MergeMeshes()
                         unsigned int meshIndex = meshRef.GetIndex();
 
                         if (meshIndex == removedIndex) {
-                            node->meshes.erase(curNode->meshes.begin() + mm);
+                            curNode->meshes.erase(curNode->meshes.begin() + mm);
                         } else if (meshIndex > removedIndex) {
                             Ref<Mesh> newMeshRef = mAsset->meshes.Get(meshIndex - 1);