- 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-9d2fd5bffc1fpull/1/head
parent
dbfa8a4f37
commit
efc5c91746
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue