fix quad poly bug

This commit is contained in:
Anakin 2017-01-05 09:39:18 +01:00
parent a2f5324a3c
commit 552f86bf2d
2 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,6 @@ void GeometryEngine::loadFile(const char* filePath)
try
{
//TODO normalize
QVector<Model*>* models;
QVector<std::string>* textureNames;
QVector<VertexData> vertexData;

View File

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