We now also write with the preferedSuffix

CURA-1263
This commit is contained in:
Jaime van Kessel 2016-11-22 13:38:06 +01:00
parent e3eb75ab6e
commit 8a67f44cf0

View file

@ -59,7 +59,7 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
if type(container) == type(ContainerRegistry.getInstance().getEmptyInstanceContainer()):
return # Empty file, do nothing.
file_suffix = ContainerRegistry.getMimeTypeForContainer(type(container)).suffixes[0]
file_suffix = ContainerRegistry.getMimeTypeForContainer(type(container)).preferredSuffix
# Some containers have a base file, which should then be the file to use.
if "base_file" in container.getMetaData():