Commit 552f86bf authored by Anakin's avatar Anakin

fix quad poly bug

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