fix the model xml

pull/1622/head
Kim Kulling 2017-12-07 17:50:18 +01:00
parent 3d4256a7a7
commit 972d8517b5
2 changed files with 4 additions and 3 deletions

View File

@ -240,13 +240,14 @@ void D3MFExporter::writeMesh( aiMesh *mesh ) {
writeVertex( mesh->mVertices[ i ] );
}
mModelOutput << "</" << XmlTag::vertices << ">" << std::endl;
mModelOutput << "</" << XmlTag::mesh << ">" << std::endl;
writeFaces( mesh );
mModelOutput << "</" << XmlTag::mesh << ">" << std::endl;
}
void D3MFExporter::writeVertex( const aiVector3D &pos ) {
mModelOutput << "<" << XmlTag::vertex << " x=\"" << pos.x << "\" y=\"" << pos.y << "\" z=\"" << pos.z << "\">";
mModelOutput << "<" << XmlTag::vertex << " x=\"" << pos.x << "\" y=\"" << pos.y << "\" z=\"" << pos.z << "\" />";
mModelOutput << std::endl;
}

View File

@ -72,7 +72,7 @@ public:
}
~XmlSerializer() {
// empty
}
void ImportXml(aiScene* scene) {