Changed assimp to force regeneration of normals.

This commit is contained in:
Sebastian Maisch
2018-05-29 13:01:11 +02:00
parent bdbad4c64f
commit c6eda67296
2 changed files with 17 additions and 3 deletions

View File

@@ -112,8 +112,10 @@ void GenVertexNormalsProcess::Execute( aiScene* pScene)
// Executes the post processing step on the given imported data.
bool GenVertexNormalsProcess::GenMeshVertexNormals (aiMesh* pMesh, unsigned int meshIndex)
{
if (NULL != pMesh->mNormals)
return false;
if (NULL != pMesh->mNormals) {
delete[] pMesh->mNormals;
}
// return false;
// If the mesh consists of lines and/or points but not of
// triangles or higher-order polygons the normal vectors