- BUGFIX : Fix CanRead-method of obj-file-importer class: add missing token for a format validation.

- REFACTORING : Make token list static.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@920 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
kimmi 2011-03-18 12:21:26 +00:00
parent dbfa8a4f37
commit efc5c91746
1 changed files with 2 additions and 2 deletions

View File

@ -84,8 +84,8 @@ bool ObjFileImporter::CanRead( const std::string& pFile, IOSystem* pIOHandler ,
}
else //Check file Header
{
const char* tokens[] = {"mtllib","usemtl","vt ","vn ","o "};
return BaseImporter::SearchFileHeaderForToken(pIOHandler, pFile, tokens, 5);
static const char *pTokens[] = { "mtllib", "usemtl", "v ", "vt ", "vn ", "o ", "g ", "s ", "f " };
return BaseImporter::SearchFileHeaderForToken(pIOHandler, pFile, pTokens, 9 );
}
}