# pk3: fix CanRead()

# fix small typo in Importer.cpp

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@962 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2011-04-22 16:08:31 +00:00
parent 5a2d2d08e2
commit ea3372f232
2 changed files with 6 additions and 11 deletions

View File

@@ -151,10 +151,7 @@ Q3BSPFileImporter::~Q3BSPFileImporter()
}
std::vector<Q3BSP::sQ3BSPFace*> *pCurFaceArray = (*it).second;
if ( NULL != pCurFaceArray )
{
delete pCurFaceArray;
}
delete pCurFaceArray;
}
m_MaterialLookupMap.clear();
}
@@ -163,13 +160,11 @@ Q3BSPFileImporter::~Q3BSPFileImporter()
// Returns true, if the loader can read this.
bool Q3BSPFileImporter::CanRead( const std::string& rFile, IOSystem* pIOHandler, bool checkSig ) const
{
bool isBSPData = false;
if ( checkSig )
{
isBSPData = SimpleExtensionCheck( rFile, Q3BSPExtension .c_str() );
if(!checkSig) {
return SimpleExtensionCheck( rFile, Q3BSPExtension .c_str() );
}
return isBSPData;
// TODO perhaps add keyword based detection
return false;
}
// ------------------------------------------------------------------------------------------------