From 972d8517b5d5f0ceb3a95fd9b3acb1f121b8df64 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 7 Dec 2017 17:50:18 +0100 Subject: [PATCH] fix the model xml --- code/D3MFExporter.cpp | 5 +++-- code/D3MFImporter.cpp | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/code/D3MFExporter.cpp b/code/D3MFExporter.cpp index 0320dac21..162d20764 100644 --- a/code/D3MFExporter.cpp +++ b/code/D3MFExporter.cpp @@ -240,13 +240,14 @@ void D3MFExporter::writeMesh( aiMesh *mesh ) { writeVertex( mesh->mVertices[ i ] ); } mModelOutput << "" << std::endl; - mModelOutput << "" << std::endl; writeFaces( mesh ); + + mModelOutput << "" << 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; } diff --git a/code/D3MFImporter.cpp b/code/D3MFImporter.cpp index fec36cebe..372416dbd 100644 --- a/code/D3MFImporter.cpp +++ b/code/D3MFImporter.cpp @@ -72,7 +72,7 @@ public: } ~XmlSerializer() { - + // empty } void ImportXml(aiScene* scene) {