- Fixed brushexport2 output float-format (Shaderman)

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@162 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
namespace 2007-04-15 13:51:17 +00:00
parent 6763fa2719
commit 389cb33239
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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 Face*>::const_iterator it(git->faces.begin()); it != end; ++it)