mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 21:19:01 +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(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))
|
||||
|
||||
except Exception as error:
|
||||
Logger.logException("e", "Error writing zip file")
|
||||
self.setInformation(str(error))
|
||||
return False
|
||||
|
||||
finally:
|
||||
if not self._store_archive:
|
||||
archive.close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user