Commit 20b802e8 authored by hybrid's avatar hybrid

Add equals check with tolerance in heigthmap optimizer

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4548 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 37437196
...@@ -1306,7 +1306,7 @@ void CMeshManipulator::heightmapOptimizeMesh(IMeshBuffer * const mb, const f32 t ...@@ -1306,7 +1306,7 @@ void CMeshManipulator::heightmapOptimizeMesh(IMeshBuffer * const mb, const f32 t
// if (N.getLengthSQ() < 0.5f) // if (N.getLengthSQ() < 0.5f)
// puts("empty"); // puts("empty");
if (N != edges[g].normal[z]) if (!N.equals(edges[g].normal[z], tolerance))
{ {
// puts("wouldflip"); // puts("wouldflip");
goto testnext; goto testnext;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment