Skip to content
Snippets Groups Projects
Commit 552f86bf authored by Anakin's avatar Anakin
Browse files

fix quad poly bug

parent a2f5324a
No related branches found
No related tags found
No related merge requests found
......@@ -37,8 +37,6 @@ void GeometryEngine::loadFile(const char* filePath)
try
{
//TODO normalize
QVector<Model*>* models;
QVector<std::string>* textureNames;
QVector<VertexData> vertexData;
......
......@@ -451,6 +451,8 @@ void MshFile::analyseSegmChunks(Model * dataDestination, std::list<ChunkHeader*>
// ..calculate the edge indices
for (int triEdge = 0; triEdge < 3; triEdge++)
new_segment->indices.push_back(tmp_buffer[(tri + triEdge - ((tri % 2) * (triEdge - 1) * 2))]);
tmp_buffer.remove(0, tmp_multiPolySize);
}
} // if 2 high bits are set
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment