Sfoglia il codice sorgente

Fix UNKNOWN WRITE in Assimp::SortByPTypeProcess::Execute

Alex 2 anni fa
parent
commit
36dfa3bed3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      code/AssetLib/OFF/OFFLoader.cpp

+ 1 - 1
code/AssetLib/OFF/OFFLoader.cpp

@@ -284,7 +284,7 @@ void OFFImporter::InternReadFile( const std::string& pFile, aiScene* pScene, IOS
     for (unsigned int i = 0; i < numFaces; ) {
         if(!GetNextLine(buffer,line)) {
             ASSIMP_LOG_ERROR("OFF: The number of faces in the header is incorrect");
-            break;
+            throw DeadlyImportError("OFF: The number of faces in the header is incorrect");
         }
         unsigned int idx;
         sz = line; SkipSpaces(&sz);