Visual Studio’s Search All Files ignores ObjFileImporter.cpp and now I’m sure that’s a bug
pull/3801/head
Krishty 2021-05-05 13:14:25 +02:00
parent deca47225f
commit b546dfccc7
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ ObjFileImporter::~ObjFileImporter() {
// Returns true if file is an obj file.
bool ObjFileImporter::CanRead(const std::string &pFile, IOSystem *pIOHandler, bool /*checkSig*/) const {
static const char *tokens[] = { "mtllib", "usemtl", "v ", "vt ", "vn ", "o ", "g ", "s ", "f " };
return BaseImporter::SearchFileHeaderForToken(pIOHandler, pFile, tokens, std::size(tokens), 200, false, true);
return BaseImporter::SearchFileHeaderForToken(pIOHandler, pFile, tokens, AI_COUNT_OF(tokens), 200, false, true);
}
// ------------------------------------------------------------------------------------------------