mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Saving workspace now works when there are no meshes to save
CURA-1263
This commit is contained in:
parent
61d1199abf
commit
3ab283bfed
1 changed files with 3 additions and 0 deletions
|
@ -20,7 +20,10 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
|
|||
# Indicate that the 3mf mesh writer should not close the archive just yet (we still need to add stuff to it).
|
||||
mesh_writer.setStoreArchive(True)
|
||||
mesh_writer.write(stream, nodes, mode)
|
||||
|
||||
archive = mesh_writer.getArchive()
|
||||
if archive is None: # This happens if there was no mesh data to write.
|
||||
archive = zipfile.ZipFile(stream, "w", compression = zipfile.ZIP_DEFLATED)
|
||||
|
||||
global_container_stack = Application.getInstance().getGlobalContainerStack()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue