mirror of
https://github.com/lubosz/overte.git
synced 2025-04-18 04:18:17 +02:00
Fixed OBJ reader crash, did not fix OBJ reader not working properly.
This commit is contained in:
parent
864184a107
commit
c5bb419bd1
1 changed files with 2 additions and 2 deletions
|
@ -473,8 +473,8 @@ FBXGeometry* OBJReader::readOBJ(QByteArray& model, const QVariantHash& mapping,
|
|||
// Create a new FBXMesh for this material mapping.
|
||||
materialMeshIdMap.insert(face.materialName, materialMeshIdMap.count());
|
||||
|
||||
FBXMesh& meshNew = geometry.meshes[0];
|
||||
meshNew.meshIndex = 0;
|
||||
FBXMesh meshNew = geometry.meshes[0];
|
||||
meshNew.meshIndex = fbxMeshes.count();
|
||||
meshNew.clusters.append(cluster);
|
||||
|
||||
// Add this mesh part to the mesh.
|
||||
|
|
Loading…
Reference in a new issue