- Add unit test to avoid ppfx-related issue with re-use of Importer's in future.
- X file loader now properly resets all of its members.
- OptimizeMeshes step now properly resets all of its member.
- Fix old (and already deprecated) makefile.mingw.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@593 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2010-03-11 18:24:54 +00:00
parent 08ace2f27b
commit e2daf37a39
5 changed files with 41 additions and 2 deletions

View File

@@ -96,6 +96,10 @@ void XFileImporter::InternReadFile( const std::string& pFile, aiScene* pScene, I
if( fileSize < 16)
throw new ImportErrorException( "XFile is too small.");
// need to clear members - this method might be called multiple
// times on a single XFileImporter instance.
mImportedMats.clear();
// in the hope that binary files will never start with a BOM ...
mBuffer.resize( fileSize);
file->Read( &mBuffer.front(), 1, fileSize);