- Fixed brushexport2 output float-format (Shaderman)
authornamespace <namespace>
Sun, 15 Apr 2007 13:51:17 +0000 (13:51 +0000)
committernamespace <namespace>
Sun, 15 Apr 2007 13:51:17 +0000 (13:51 +0000)
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@162 8a3a26a2-13c4-0310-b231-cf6edde360e5

CHANGES
contrib/brushexport/export.cpp

diff --git a/CHANGES b/CHANGES
index ef1dcbb..0e205b7 100644 (file)
--- 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
index ac42111..ffa4020 100644 (file)
@@ -191,7 +191,7 @@ bool ExportDataAsWavefront::WriteToFile(const std::string& path) const
                        \r
                        // vertices\r
                        for(size_t i = 0; i < w.numpoints; ++i)\r
-                       out << "v " << w[i].vertex.x() << " " << w[i].vertex.y() << " " << w[i].vertex.z() << "\n";\r
+                               out << "v " << FloatFormat(w[i].vertex.x(), 1, 6) << " " << FloatFormat(w[i].vertex.y(), 1, 6) << " " << FloatFormat(w[i].vertex.z(), 1, 6) << "\n";\r
                }\r
                out << "\n";    \r
                \r
@@ -201,7 +201,7 @@ bool ExportDataAsWavefront::WriteToFile(const std::string& path) const
                        \r
                        // texcoords\r
                        for(size_t i = 0; i < w.numpoints; ++i)\r
-                       out << "vt " << w[i].texcoord.x() << " " << w[i].texcoord.y() << "\n";\r
+                               out << "vt " << FloatFormat(w[i].texcoord.x(), 1, 6) << " " << FloatFormat(w[i].texcoord.y(), 1, 6) << "\n";\r
                }\r
                \r
                for(std::list<const Face*>::const_iterator it(git->faces.begin()); it != end; ++it)\r