Merge r4548-4549 from trunk:

Add equals check with tolerance in heigthmap optimizer
Unify texture transformation for tex coord system with mesh loader.


git-svn-id: http://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@4637 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2014-01-07 22:44:29 +00:00
parent 38be77641c
commit d94c042077
2 changed files with 2 additions and 2 deletions

View File

@ -1306,7 +1306,7 @@ void CMeshManipulator::heightmapOptimizeMesh(IMeshBuffer * const mb, const f32 t
// if (N.getLengthSQ() < 0.5f)
// puts("empty");
if (N != edges[g].normal[z])
if (!N.equals(edges[g].normal[z], tolerance))
{
// puts("wouldflip");
goto testnext;

View File

@ -224,7 +224,7 @@ void COBJMeshWriter::getVectorAsStringLine(const core::vector2df& v, core::strin
{
s = core::stringc(v.X);
s += " ";
s += core::stringc(-v.Y);
s += core::stringc(1-v.Y);
s += "\n";
}