mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:29:00 +08:00
commit to create package
CURA-10542
This commit is contained in:
parent
002af4eb81
commit
72448eec5b
@ -295,10 +295,12 @@ class ThreeMFWriter(MeshWriter):
|
|||||||
archive.writestr(model_file, scene_string)
|
archive.writestr(model_file, scene_string)
|
||||||
archive.writestr(content_types_file, b'<?xml version="1.0" encoding="UTF-8"?> \n' + ET.tostring(content_types))
|
archive.writestr(content_types_file, b'<?xml version="1.0" encoding="UTF-8"?> \n' + ET.tostring(content_types))
|
||||||
archive.writestr(relations_file, b'<?xml version="1.0" encoding="UTF-8"?> \n' + ET.tostring(relations_element))
|
archive.writestr(relations_file, b'<?xml version="1.0" encoding="UTF-8"?> \n' + ET.tostring(relations_element))
|
||||||
|
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
Logger.logException("e", "Error writing zip file")
|
Logger.logException("e", "Error writing zip file")
|
||||||
self.setInformation(str(error))
|
self.setInformation(str(error))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
if not self._store_archive:
|
if not self._store_archive:
|
||||||
archive.close()
|
archive.close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user