bugfix: search for token checks for the given tokenlist against the lowercased info coming from the asset file. So we also have to used a lowercased token. Thanks to Robinson for the report.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>
pull/405/head
Kim Kulling 2014-10-10 15:59:42 +02:00
parent dad152e726
commit 487c9449d2
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ bool FBXImporter::CanRead( const std::string& pFile, IOSystem* pIOHandler, bool
else if ((!extension.length() || checkSig) && pIOHandler) { else if ((!extension.length() || checkSig) && pIOHandler) {
// at least ascii FBX files usually have a 'FBX' somewhere in their head // at least ascii FBX files usually have a 'FBX' somewhere in their head
const char* tokens[] = {"FBX"}; const char* tokens[] = {"fbx"};
return SearchFileHeaderForToken(pIOHandler,pFile,tokens,1); return SearchFileHeaderForToken(pIOHandler,pFile,tokens,1);
} }
return false; return false;