Merge pull request #2863 from Dunni/user/dunnia/ply-export-fix
Fix PlyExporter to support faces with 0 verticespull/2865/head
commit
acb8addf7d
|
@ -373,10 +373,11 @@ void PlyExporter::WriteMeshIndices(const aiMesh* m, unsigned int offset)
|
|||
{
|
||||
for (unsigned int i = 0; i < m->mNumFaces; ++i) {
|
||||
const aiFace& f = m->mFaces[i];
|
||||
mOutput << f.mNumIndices << " ";
|
||||
mOutput << f.mNumIndices;
|
||||
for(unsigned int c = 0; c < f.mNumIndices; ++c) {
|
||||
mOutput << (f.mIndices[c] + offset) << (c == f.mNumIndices-1 ? endl : " ");
|
||||
mOutput << " " << (f.mIndices[c] + offset);
|
||||
}
|
||||
mOutput << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue