Fix: FindLoader() now converts the input file extension to lowercase.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@828 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2010-10-13 19:34:44 +00:00
parent fdda697af7
commit 8a27ecf827
1 changed files with 3 additions and 1 deletions

View File

@ -1187,8 +1187,10 @@ BaseImporter* Importer::FindLoader (const char* szExtension) const
for(;*szExtension == '*' || *szExtension == '.'; ++szExtension);
std::string ext(szExtension);
if (ext.empty())
if (ext.empty()) {
return NULL;
}
std::transform(ext.begin(),ext.end(), ext.begin(), tolower);
std::set<std::string> str;
for (std::vector<BaseImporter*>::const_iterator i = pimpl->mImporter.begin();i != pimpl->mImporter.end();++i) {