Fix: qnan detection code. Appearently I fooled myself when I wrote this.

Fix: MDLLoader does not reset texture array properly when textures are substituted by plain colors. This caused crashes in ~aiScene or heap corruption.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@677 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2010-04-13 17:34:55 +00:00
parent da87178a25
commit 906c45eeeb
3 changed files with 78 additions and 26 deletions

View File

@@ -510,6 +510,8 @@ void MDLImporter::SetupMaterialProperties_3DGS_MDL5_Quake1( )
if (is_not_qnan(clr.r)) {
delete pScene->mTextures[0];
delete[] pScene->mTextures;
pScene->mTextures = NULL;
pScene->mNumTextures = 0;
}
else {