fix: want to add if NOT qnan

pull/256/head
tszirr 2014-04-21 23:20:34 +02:00
parent 8699021f17
commit 51cb2c042c
1 changed files with 2 additions and 4 deletions

View File

@ -217,10 +217,8 @@ bool GenVertexNormalsProcess::GenMeshVertexNormals (aiMesh* pMesh, unsigned int
// HACK: if v.x is qnan the dot product will become qnan, too // HACK: if v.x is qnan the dot product will become qnan, too
// therefore the comparison against fLimit should be false // therefore the comparison against fLimit should be false
// in every case. // in every case.
if (v * pMesh->mNormals[i] < fLimit) if (v * pMesh->mNormals[i] >= fLimit)
continue; pcNor += v;
pcNor += v;
} }
pcNew[i] = pcNor.Normalize(); pcNew[i] = pcNor.Normalize();
} }