From 8587e3790ff9d8c855fe882718b3aecf3a860944 Mon Sep 17 00:00:00 2001 From: namespace Date: Sun, 15 Apr 2007 13:51:17 +0000 Subject: [PATCH] - Fixed brushexport2 output float-format (Shaderman) git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@162 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- CHANGES | 4 ++++ contrib/brushexport/export.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index ef1dcbb6..0e205b72 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,10 @@ This is the changelog for developers, != changelog for the end user that we distribute with the binaries. (see changelog) +15/03/2007 +namespace +- Fixed brushexport2 output float-format (Shaderman) + 27/03/2007 namespace - Fix: Added missing xml-writer pop-calls diff --git a/contrib/brushexport/export.cpp b/contrib/brushexport/export.cpp index ac421114..ffa40201 100644 --- a/contrib/brushexport/export.cpp +++ b/contrib/brushexport/export.cpp @@ -191,7 +191,7 @@ bool ExportDataAsWavefront::WriteToFile(const std::string& path) const // vertices for(size_t i = 0; i < w.numpoints; ++i) - out << "v " << w[i].vertex.x() << " " << w[i].vertex.y() << " " << w[i].vertex.z() << "\n"; + out << "v " << FloatFormat(w[i].vertex.x(), 1, 6) << " " << FloatFormat(w[i].vertex.y(), 1, 6) << " " << FloatFormat(w[i].vertex.z(), 1, 6) << "\n"; } out << "\n"; @@ -201,7 +201,7 @@ bool ExportDataAsWavefront::WriteToFile(const std::string& path) const // texcoords for(size_t i = 0; i < w.numpoints; ++i) - out << "vt " << w[i].texcoord.x() << " " << w[i].texcoord.y() << "\n"; + out << "vt " << FloatFormat(w[i].texcoord.x(), 1, 6) << " " << FloatFormat(w[i].texcoord.y(), 1, 6) << "\n"; } for(std::list::const_iterator it(git->faces.begin()); it != end; ++it) -- 2.39.2