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
This commit is contained in:
parent
38be77641c
commit
d94c042077
@ -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;
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user