From 473d2ca052060c6abf3b025618ad2b6261071a65 Mon Sep 17 00:00:00 2001 From: mpersano Date: Fri, 22 Apr 2016 16:09:45 -0300 Subject: [PATCH] Fix texture coords exporting on binary PLY files --- code/PlyExporter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/PlyExporter.cpp b/code/PlyExporter.cpp index 82fdc8558..c788e19ce 100644 --- a/code/PlyExporter.cpp +++ b/code/PlyExporter.cpp @@ -309,10 +309,10 @@ void PlyExporter::WriteMeshVertsBinary(const aiMesh* m, unsigned int components) for (unsigned int n = PLY_EXPORT_HAS_TEXCOORDS, c = 0; (components & n) && c != AI_MAX_NUMBER_OF_TEXTURECOORDS; n <<= 1, ++c) { if (m->HasTextureCoords(c)) { - mOutput.write(reinterpret_cast(&m->mTextureCoords[c][i].x), 6); + mOutput.write(reinterpret_cast(&m->mTextureCoords[c][i].x), 8); } else { - mOutput.write(reinterpret_cast(&defaultUV.x), 6); + mOutput.write(reinterpret_cast(&defaultUV.x), 8); } }