Merge pull request #1268 from VennGrayDog/b1

Add TokensForSearch in BlenderLoader
pull/1272/head
Kim Kulling 2017-05-15 21:37:26 +02:00 committed by GitHub
commit ff7624f06f
1 changed files with 2 additions and 1 deletions

View File

@ -110,6 +110,7 @@ BlenderImporter::~BlenderImporter()
}
static const char* Tokens[] = { "BLENDER" };
static const char* TokensForSearch[] = { "blender" };
// ------------------------------------------------------------------------------------------------
// Returns whether the class can handle the format of the given file.
@ -122,7 +123,7 @@ bool BlenderImporter::CanRead( const std::string& pFile, IOSystem* pIOHandler, b
else if ((!extension.length() || checkSig) && pIOHandler) {
// note: this won't catch compressed files
return SearchFileHeaderForToken(pIOHandler,pFile, Tokens,1);
return SearchFileHeaderForToken(pIOHandler,pFile, TokensForSearch,1);
}
return false;
}