Browse Source

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 <[email protected]>
Kim Kulling 11 năm trước cách đây
mục cha
commit
487c9449d2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      code/FBXImporter.cpp

+ 1 - 1
code/FBXImporter.cpp

@@ -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;