- further Collada work: materials are now loaded from profile_COMMON, meshes are properly split up at material borders

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@260 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
ulfjorensen
2008-12-04 17:06:26 +00:00
parent d320a4bc64
commit 917db45b3c
9 changed files with 526 additions and 161 deletions

View File

@@ -541,10 +541,8 @@ const aiScene* Importer::ReadFile( const std::string& pFile, unsigned int pFlags
// put a large try block around everything to catch all std::exception's
// that might be thrown by STL containers or by new().
// ImportErrorException's are throw by ourselves and caught elsewhere.
#ifndef _DEBUG
try
{
#endif
// check whether this Importer instance has already loaded
// a scene. In this case we need to delete the old one
if (this->mScene)
@@ -644,7 +642,6 @@ const aiScene* Importer::ReadFile( const std::string& pFile, unsigned int pFlags
// clear any data allocated by post-process steps
mPPShared->Clean();
#ifndef _DEBUG
}
catch (std::exception &e)
{
@@ -659,7 +656,6 @@ const aiScene* Importer::ReadFile( const std::string& pFile, unsigned int pFlags
DefaultLogger::get()->error(mErrorString);
delete mScene;mScene = NULL;
}
#endif
// either successful or failure - the pointer expresses it anyways
return mScene;