mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 07:48:59 +08:00
We now also write with the preferedSuffix
CURA-1263
This commit is contained in:
parent
e3eb75ab6e
commit
8a67f44cf0
@ -59,7 +59,7 @@ class ThreeMFWorkspaceWriter(WorkspaceWriter):
|
|||||||
if type(container) == type(ContainerRegistry.getInstance().getEmptyInstanceContainer()):
|
if type(container) == type(ContainerRegistry.getInstance().getEmptyInstanceContainer()):
|
||||||
return # Empty file, do nothing.
|
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.
|
# Some containers have a base file, which should then be the file to use.
|
||||||
if "base_file" in container.getMetaData():
|
if "base_file" in container.getMetaData():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user