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:
Ghostkeeper 2018-04-12 16:54:21 +02:00
parent 942afe2c3f
commit e96c50a582
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -653,7 +653,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
# machine definition cannot be found.
Logger.logException("e", "Failed to deserialize definition file %s in project file %s",
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)
Job.yieldThread()