Cleaning up decimation.

This commit is contained in:
David Williams 2007-09-26 23:57:23 +00:00
parent 4d7c83bbaf
commit f82aaad082
2 changed files with 1 additions and 2 deletions

View File

@ -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");

View File

@ -303,7 +303,6 @@ namespace Ogre
{
allZMatch = false;
}
//FIXME - already normalised?
if((*connectedIter)->getNormal().dotProduct(vertexIter->getNormal()) < 0.99)
{
return false;