diff --git a/source/PolyVoxSceneManager.cpp b/source/PolyVoxSceneManager.cpp index a1b31ea7..5dd48d56 100644 --- a/source/PolyVoxSceneManager.cpp +++ b/source/PolyVoxSceneManager.cpp @@ -1018,7 +1018,7 @@ namespace Ogre { noOfRemovedVertices = iterPatch->second.decimate(); } - while(noOfRemovedVertices > 0); + while(noOfRemovedVertices > 10); //We don't worry about the last few vertices - it's not worth the overhead of calling the function. } //LogManager::getSingleton().logMessage("Finished Generating Mesh Data"); diff --git a/source/SurfacePatch.cpp b/source/SurfacePatch.cpp index e816626a..a29f3b8c 100644 --- a/source/SurfacePatch.cpp +++ b/source/SurfacePatch.cpp @@ -303,7 +303,6 @@ namespace Ogre { allZMatch = false; } - //FIXME - already normalised? if((*connectedIter)->getNormal().dotProduct(vertexIter->getNormal()) < 0.99) { return false;