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:
@@ -116,7 +116,7 @@ inline const char* TextureTypeToString(aiTextureType in)
|
||||
case aiTextureType_SHININESS:
|
||||
return "Shininess";
|
||||
default:
|
||||
return "LARGE ERROR, please leave the room immediately and call the police";
|
||||
return "HUGE ERROR, please leave the room immediately and call the police";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ inline const char* MappingTypeToString(aiTextureMapping in)
|
||||
case aiTextureMapping_OTHER:
|
||||
return "Other";
|
||||
default:
|
||||
return "LARGE ERROR, please leave the room immediately and call the police";
|
||||
return "HUGE ERROR, please leave the room immediately and call the police";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,5 +187,5 @@ class DestroySpatialSortProcess : public BaseProcess
|
||||
}
|
||||
};
|
||||
|
||||
} // !! Assimp
|
||||
} // ! namespace Assimp
|
||||
#endif // !! AI_PROCESS_HELPER_H_INCLUDED
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user