Fixed OBJ reader crash, did not fix OBJ reader not working properly.

This commit is contained in:
trent 2017-03-30 18:16:55 -04:00
parent 864184a107
commit c5bb419bd1

View file

@ -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.