Commit 700a16fd authored by TheNumbat's avatar TheNumbat
Browse files

skip <3 vert faces

parent f959bd58
......@@ -324,6 +324,7 @@ static void load_node(Scene &scobj, std::vector<std::string> &errors,
std::vector<std::vector<Halfedge_Mesh::Index>> polys;
for (unsigned int j = 0; j < mesh->mNumFaces; j++) {
const aiFace &face = mesh->mFaces[j];
if(face.mNumIndices < 3) continue;
std::vector<Halfedge_Mesh::Index> poly;
for (unsigned int k = 0; k < face.mNumIndices; k++) {
poly.push_back(face.mIndices[k]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment