diff --git a/code/AssetLib/3MF/D3MFImporter.cpp b/code/AssetLib/3MF/D3MFImporter.cpp index 2633bacf4..5508c2505 100644 --- a/code/AssetLib/3MF/D3MFImporter.cpp +++ b/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; }