Merge pull request #3515 from LoicFr/master
glTF2Exporter: fix crash when exporting a scene with several meshes p…pull/3521/head^2
commit
10092cd1ec
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue