- refraing from using magic numbers like 0xffffffff all over the repository, rather use UINT_MAX/SIZE_MAX ..

- minor re-formatting and refactoring at some old code spots.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@970 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2011-04-22 21:29:18 +00:00
parent 14c6467aac
commit 6f30639d7f
40 changed files with 194 additions and 190 deletions

View File

@@ -120,7 +120,7 @@ bool LWOImporter::HandleTextures(MaterialHelper* pcMat, const TextureList& in, a
break;
case LWO::Texture::UV:
{
if( 0xffffffff == (*it).mRealUVIndex ) {
if( UINT_MAX == (*it).mRealUVIndex ) {
// We have no UV index for this texture, so we can't display it
continue;
}
@@ -390,7 +390,7 @@ char LWOImporter::FindUVChannels(LWO::TextureList& list,
ret = 1;
// got it.
if ((*it).mRealUVIndex == 0xffffffff || (*it).mRealUVIndex == next)
if ((*it).mRealUVIndex == UINT_MAX || (*it).mRealUVIndex == next)
{
(*it).mRealUVIndex = next;
}
@@ -467,7 +467,7 @@ void LWOImporter::FindUVChannels(LWO::Surface& surf,
}
}
if (extra < AI_MAX_NUMBER_OF_TEXTURECOORDS) {
out[extra] = 0xffffffff;
out[extra] = UINT_MAX;
}
}
@@ -515,7 +515,7 @@ void LWOImporter::FindVCChannels(const LWO::Surface& surf, LWO::SortedRep& sorte
}
}
if (next != AI_MAX_NUMBER_OF_COLOR_SETS) {
out[next] = 0xffffffff;
out[next] = UINT_MAX;
}
}