Sfoglia il codice sorgente

Update D3MFImporter.cpp

Kim Kulling 1 anno fa
parent
commit
b9576e6992
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      code/AssetLib/3MF/D3MFImporter.cpp

+ 2 - 2
code/AssetLib/3MF/D3MFImporter.cpp

@@ -85,9 +85,9 @@ bool D3MFImporter::CanRead(const std::string &filename, IOSystem *pIOHandler, bo
     if (!ZipArchiveIOSystem::isZipArchive(pIOHandler, filename)) {
         return false;
     }
-    
+    static const char *const ModelRef = "3D/3dmodel.model";
     ZipArchiveIOSystem archive(pIOHandler, rFile);
-    if (!mZipArchive->archive()) {
+    if (!archive.Exists(ModelRef)) {
         return false;
     }