|
@@ -81,12 +81,17 @@ static constexpr aiImporterDesc desc = {
|
|
|
"3mf"
|
|
|
};
|
|
|
|
|
|
-bool D3MFImporter::CanRead(const std::string &filename, IOSystem *pIOHandler, bool /*checkSig*/) const {
|
|
|
+bool D3MFImporter::CanRead(const std::string &filename, IOSystem *pIOHandler, bool ) const {
|
|
|
if (!ZipArchiveIOSystem::isZipArchive(pIOHandler, filename)) {
|
|
|
return false;
|
|
|
}
|
|
|
- D3MF::D3MFOpcPackage opcPackage(pIOHandler, filename);
|
|
|
- return opcPackage.validate();
|
|
|
+
|
|
|
+ ZipArchiveIOSystem archive(pIOHandler, rFile);
|
|
|
+ if (!mZipArchive->archive()) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
void D3MFImporter::SetupProperties(const Importer*) {
|