Skip to content
Snippets Groups Projects
Commit 8662a68a authored by Martin Schultz's avatar Martin Schultz
Browse files

added postprocessing step to fix degenerates in assimp, bacuase trying

to add degenerates violates assertions
parent 240e752f
No related branches found
No related tags found
1 merge request!5Prepare assimp plugin
......@@ -335,9 +335,9 @@ int AssimpPlugin::loadObject(QString _filename) {
const aiScene* scene = NULL;
if (type_ == DATA_TRIANGLE_MESH)
scene = importer.ReadFile(_filename.toStdString(), aiProcess_JoinIdenticalVertices | aiProcess_Triangulate);
scene = importer.ReadFile(_filename.toStdString(), aiProcess_JoinIdenticalVertices | aiProcess_Triangulate | aiProcess_FindDegenerates);
else
scene = importer.ReadFile(_filename.toStdString(), aiProcess_JoinIdenticalVertices);
scene = importer.ReadFile(_filename.toStdString(), aiProcess_JoinIdenticalVertices | aiProcess_FindDegenerates);
if (!scene) {
emit log(LOGERR, tr(importer.GetErrorString()));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment