mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 13:15:57 +08:00
Fall back to FDMPrinter if definition can't be loaded
Some of the settings will be different. But at least it won't crash. Contributes to issue CURA-5045.
This commit is contained in:
parent
942afe2c3f
commit
e96c50a582
@ -653,7 +653,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||||||
# machine definition cannot be found.
|
# machine definition cannot be found.
|
||||||
Logger.logException("e", "Failed to deserialize definition file %s in project file %s",
|
Logger.logException("e", "Failed to deserialize definition file %s in project file %s",
|
||||||
definition_container_file, file_name)
|
definition_container_file, file_name)
|
||||||
raise
|
definition_container = self._container_registry.findDefinitionContainers(id = "fdmprinter")[0] #Fall back to defaults.
|
||||||
self._container_registry.addContainer(definition_container)
|
self._container_registry.addContainer(definition_container)
|
||||||
Job.yieldThread()
|
Job.yieldThread()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user