Changeset 162

Show
Ignore:
Timestamp:
04/15/07 08:51:17 (2 years ago)
Author:
namespace
Message:

- Fixed brushexport2 output float-format (Shaderman)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/trunk/CHANGES

    r159 r162  
    11This is the changelog for developers, != changelog for the end user  
    22that we distribute with the binaries. (see changelog) 
     3 
     415/03/2007 
     5namespace 
     6- Fixed brushexport2 output float-format (Shaderman) 
    37 
    4827/03/2007 
  • GtkRadiant/trunk/contrib/brushexport/export.cpp

    r128 r162  
    192192                        // vertices 
    193193                        for(size_t i = 0; i < w.numpoints; ++i) 
    194                         out << "v " << w[i].vertex.x() << " " << w[i].vertex.y() << " " << w[i].vertex.z() << "\n"; 
     194                               out << "v " << FloatFormat(w[i].vertex.x(), 1, 6) << " " << FloatFormat(w[i].vertex.y(), 1, 6) << " " << FloatFormat(w[i].vertex.z(), 1, 6) << "\n"; 
    195195                } 
    196196                out << "\n";     
     
    202202                        // texcoords 
    203203                        for(size_t i = 0; i < w.numpoints; ++i) 
    204                         out << "vt " << w[i].texcoord.x() << " " << w[i].texcoord.y() << "\n"; 
     204                               out << "vt " << FloatFormat(w[i].texcoord.x(), 1, 6) << " " << FloatFormat(w[i].texcoord.y(), 1, 6) << "\n"; 
    205205                } 
    206206