mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Fixed critical errors when first adding UM3
This commit is contained in:
parent
ecbe4b264a
commit
844b9729f4
1 changed files with 4 additions and 1 deletions
|
@ -80,7 +80,10 @@ class ProfilesModel(InstanceContainersModel):
|
|||
quality = quality_result["quality"]
|
||||
break
|
||||
else: #No global container stack in the results:
|
||||
quality = quality_results[0]["quality"] #Take any of the extruders.
|
||||
if quality_results:
|
||||
quality = quality_results[0]["quality"] #Take any of the extruders.
|
||||
else:
|
||||
quality = None
|
||||
if quality and quality.hasProperty("layer_height", "value"):
|
||||
item["layer_height"] = str(quality.getProperty("layer_height", "value")) + unit
|
||||
yield item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue