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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user