FIX: (aiMesh::mNumTextureCoords[n] == 0) is now propagated to 2.

Removed ATMNotUptoDate tag from SCons dir. The SCons script is generic.
Updated list of contributors.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@275 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2009-01-08 22:44:07 +00:00
parent e48d1a4e5a
commit 62a8f43ffe
4 changed files with 10 additions and 4 deletions

View File

@@ -69,7 +69,10 @@ void ScenePreprocessor::ProcessMesh (aiMesh* mesh)
// If aiMesh::mNumUVComponents is *not* set assign the default value of 2
for (unsigned int i = 0; i < AI_MAX_NUMBER_OF_TEXTURECOORDS; ++i)
{
if (!mesh->mNumUVComponents[i])
if (!mesh->mTextureCoords[i])
mesh->mNumUVComponents[i] = 0;
else if( !mesh->mNumUVComponents[i])
mesh->mNumUVComponents[i] = 2;
}