mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
Don't give an error when reading normal 3MF files
We have a signalling return value for this case. Let's use it. Contributes to issue CURA-4810.
This commit is contained in:
parent
24eff5f8b8
commit
063eb8e5cd
1 changed files with 2 additions and 4 deletions
|
@ -168,11 +168,9 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
Logger.log("w", "Unknown definition container type %s for %s",
|
Logger.log("w", "Unknown definition container type %s for %s",
|
||||||
definition_container_type, each_definition_container_file)
|
definition_container_type, each_definition_container_file)
|
||||||
Job.yieldThread()
|
Job.yieldThread()
|
||||||
# sanity check
|
|
||||||
if machine_definition_container_count != 1:
|
if machine_definition_container_count != 1:
|
||||||
msg = "Expecting one machine definition container but got %s" % machine_definition_container_count
|
return WorkspaceReader.PreReadResult.failed #Not a workspace file but ordinary 3MF.
|
||||||
Logger.log("e", msg)
|
|
||||||
raise RuntimeError(msg)
|
|
||||||
|
|
||||||
material_labels = []
|
material_labels = []
|
||||||
material_conflict = False
|
material_conflict = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue