From 51cb2c042c571b5ed6070d49b75a42ebca92179a Mon Sep 17 00:00:00 2001 From: tszirr Date: Mon, 21 Apr 2014 23:20:34 +0200 Subject: [PATCH] fix: want to add if NOT qnan --- code/GenVertexNormalsProcess.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/GenVertexNormalsProcess.cpp b/code/GenVertexNormalsProcess.cpp index 605ca7833..a659350fc 100644 --- a/code/GenVertexNormalsProcess.cpp +++ b/code/GenVertexNormalsProcess.cpp @@ -217,10 +217,8 @@ bool GenVertexNormalsProcess::GenMeshVertexNormals (aiMesh* pMesh, unsigned int // HACK: if v.x is qnan the dot product will become qnan, too // therefore the comparison against fLimit should be false // in every case. - if (v * pMesh->mNormals[i] < fLimit) - continue; - - pcNor += v; + if (v * pMesh->mNormals[i] >= fLimit) + pcNor += v; } pcNew[i] = pcNor.Normalize(); }