mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-28 23:04:34 +08:00
Merge pull request #8459 from Ultimaker/fix_filtering_output_mimetypes
Fix filtering output MIME types
This commit is contained in:
commit
28a0604951
@ -59,7 +59,7 @@ class RemovableDriveOutputDevice(OutputDevice):
|
|||||||
|
|
||||||
# Take the intersection between file_formats and machine_file_formats.
|
# Take the intersection between file_formats and machine_file_formats.
|
||||||
format_by_mimetype = {format["mime_type"]: format for format in file_formats}
|
format_by_mimetype = {format["mime_type"]: format for format in file_formats}
|
||||||
file_formats = [format_by_mimetype[mimetype] for mimetype in machine_file_formats] #Keep them ordered according to the preference in machine_file_formats.
|
file_formats = [format_by_mimetype[mimetype] for mimetype in machine_file_formats if mimetype in format_by_mimetype] # Keep them ordered according to the preference in machine_file_formats.
|
||||||
|
|
||||||
if len(file_formats) == 0:
|
if len(file_formats) == 0:
|
||||||
Logger.log("e", "There are no file formats available to write with!")
|
Logger.log("e", "There are no file formats available to write with!")
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
"0": "SV01_extruder_0"
|
"0": "SV01_extruder_0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
"overrides": {
|
"overrides": {
|
||||||
"machine_name": { "default_value": "SV01" },
|
"machine_name": { "default_value": "SV01" },
|
||||||
"machine_extruder_count": { "default_value": 1 },
|
"machine_extruder_count": { "default_value": 1 },
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"author": "Ultimaker",
|
"author": "Ultimaker",
|
||||||
"manufacturer": "Unknown",
|
"manufacturer": "Unknown",
|
||||||
"setting_version": 16,
|
"setting_version": 16,
|
||||||
"file_formats": "text/x-gcode;application/x-stl-ascii;application/x-stl-binary;application/x-wavefront-obj;application/x3g",
|
"file_formats": "text/x-gcode;model/stl;application/x-wavefront-obj;application/x3g",
|
||||||
"visible": false,
|
"visible": false,
|
||||||
"has_materials": true,
|
"has_materials": true,
|
||||||
"has_variants": false,
|
"has_variants": false,
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"visible": true,
|
"visible": true,
|
||||||
"author": "tvlgiao",
|
"author": "tvlgiao",
|
||||||
"manufacturer": "3DMaker",
|
"manufacturer": "3DMaker",
|
||||||
"file_formats": "text/x-gcode;application/x-stl-ascii;application/x-stl-binary;application/x-wavefront-obj",
|
"file_formats": "text/x-gcode;model/stl;application/x-wavefront-obj",
|
||||||
"platform": "makerstarter_platform.3mf",
|
"platform": "makerstarter_platform.3mf",
|
||||||
"preferred_quality_type": "draft",
|
"preferred_quality_type": "draft",
|
||||||
"machine_extruder_trains":
|
"machine_extruder_trains":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user