fix quad poly bug
This commit is contained in:
parent
a2f5324a3c
commit
552f86bf2d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue