Added validation step, added helper macro AI_BUILD_KEY to the material system.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@59 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -1589,14 +1589,14 @@ INT_PTR CALLBACK MessageProc(HWND hwndDlg,UINT uMsg,
|
||||
|
||||
// check whether it is a typical texture file format ...
|
||||
++sz;
|
||||
if (0 == Assimp::ASSIMP_stricmp(sz,"png") ||
|
||||
0 == Assimp::ASSIMP_stricmp(sz,"bmp") ||
|
||||
0 == Assimp::ASSIMP_stricmp(sz,"jpg") ||
|
||||
0 == Assimp::ASSIMP_stricmp(sz,"tga") ||
|
||||
0 == Assimp::ASSIMP_stricmp(sz,"tif") ||
|
||||
0 == Assimp::ASSIMP_stricmp(sz,"hdr") ||
|
||||
0 == Assimp::ASSIMP_stricmp(sz,"ppm") ||
|
||||
0 == Assimp::ASSIMP_stricmp(sz,"pfm"))
|
||||
if (0 == ASSIMP_stricmp(sz,"png") ||
|
||||
0 == ASSIMP_stricmp(sz,"bmp") ||
|
||||
0 == ASSIMP_stricmp(sz,"jpg") ||
|
||||
0 == ASSIMP_stricmp(sz,"tga") ||
|
||||
0 == ASSIMP_stricmp(sz,"tif") ||
|
||||
0 == ASSIMP_stricmp(sz,"hdr") ||
|
||||
0 == ASSIMP_stricmp(sz,"ppm") ||
|
||||
0 == ASSIMP_stricmp(sz,"pfm"))
|
||||
{
|
||||
CBackgroundPainter::Instance().SetTextureBG(szFile);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user