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-9d2fd5bffc1fpull/1/head
parent
fdda697af7
commit
8a27ecf827
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue