mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 13:19:54 +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.
|
// Create a new FBXMesh for this material mapping.
|
||||||
materialMeshIdMap.insert(face.materialName, materialMeshIdMap.count());
|
materialMeshIdMap.insert(face.materialName, materialMeshIdMap.count());
|
||||||
|
|
||||||
FBXMesh& meshNew = geometry.meshes[0];
|
FBXMesh meshNew = geometry.meshes[0];
|
||||||
meshNew.meshIndex = 0;
|
meshNew.meshIndex = fbxMeshes.count();
|
||||||
meshNew.clusters.append(cluster);
|
meshNew.clusters.append(cluster);
|
||||||
|
|
||||||
// Add this mesh part to the mesh.
|
// Add this mesh part to the mesh.
|
||||||
|
|
Loading…
Reference in a new issue