mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Fixes for print job upload
This commit is contained in:
parent
8087fa421d
commit
9e4c71cce3
2 changed files with 12 additions and 5 deletions
|
@ -90,9 +90,11 @@ class MeshFormatHandler:
|
|||
|
||||
machine_file_formats = global_stack.getMetaDataEntry("file_formats").split(";")
|
||||
machine_file_formats = [file_type.strip() for file_type in machine_file_formats]
|
||||
# Exception for UM3 firmware version >=4.4: UFP is now supported and should be the preferred file format.
|
||||
if "application/x-ufp" not in machine_file_formats and Version(firmware_version) >= Version("4.4"):
|
||||
machine_file_formats = ["application/x-ufp"] + machine_file_formats
|
||||
|
||||
# TODO: re-enable UFP after Cura master branch works again
|
||||
# # Exception for UM3 firmware version >=4.4: UFP is now supported and should be the preferred file format.
|
||||
# if "application/x-ufp" not in machine_file_formats and Version(firmware_version) >= Version("4.4"):
|
||||
# machine_file_formats = ["application/x-ufp"] + machine_file_formats
|
||||
|
||||
# Take the intersection between file_formats and machine_file_formats.
|
||||
format_by_mimetype = {f["mime_type"]: f for f in file_formats}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue