fix: accidentally dumping NORMAL twice for xmodel export

This commit is contained in:
Jan 2024-04-28 14:37:06 +02:00
parent 2497a9f228
commit 45684ac828
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C

View File

@ -110,8 +110,6 @@ class XModelExportWriter6 final : public XModelExportWriterBase
{
m_stream << "VERT " << index << "\n";
m_stream << std::format("NORMAL {:.6f} {:.6f} {:.6f}\n", vertex.normal[0], vertex.normal[1], vertex.normal[2]);
m_stream << "NORMAL " << std::setprecision(6) << std::fixed << vertex.normal[0] << " " << std::setprecision(6) << std::fixed << vertex.normal[1] << " "
<< std::setprecision(6) << std::fixed << vertex.normal[2] << "\n";
m_stream << std::format("COLOR {:.6f} {:.6f} {:.6f} {:.6f}\n", vertex.color[0], vertex.color[1], vertex.color[2], vertex.color[3]);
m_stream << std::format("UV 1 {:.6f} {:.6f}\n", vertex.uv[0], vertex.uv[1]);
}