소스 검색

fix for 0f3e6e2941f754014d5f9f12656a9e326fca61ed

Visual Studio’s Search All Files ignores ObjFileImporter.cpp and now I’m sure that’s a bug
Krishty 4 년 전
부모
커밋
b546dfccc7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      code/AssetLib/Obj/ObjFileImporter.cpp

+ 1 - 1
code/AssetLib/Obj/ObjFileImporter.cpp

@@ -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);
 }
 
 // ------------------------------------------------------------------------------------------------