Browse Source

Update D3MFImporter.cpp

Kim Kulling 1 year ago
parent
commit
b9576e6992
1 changed files with 2 additions and 2 deletions
  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)) {
     if (!ZipArchiveIOSystem::isZipArchive(pIOHandler, filename)) {
         return false;
         return false;
     }
     }
-    
+    static const char *const ModelRef = "3D/3dmodel.model";
     ZipArchiveIOSystem archive(pIOHandler, rFile);
     ZipArchiveIOSystem archive(pIOHandler, rFile);
-    if (!mZipArchive->archive()) {
+    if (!archive.Exists(ModelRef)) {
         return false;
         return false;
     }
     }