mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:26:05 +08:00
Fixed critical errors when first adding UM3
This commit is contained in:
parent
ecbe4b264a
commit
844b9729f4
@ -80,7 +80,10 @@ class ProfilesModel(InstanceContainersModel):
|
|||||||
quality = quality_result["quality"]
|
quality = quality_result["quality"]
|
||||||
break
|
break
|
||||||
else: #No global container stack in the results:
|
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"):
|
if quality and quality.hasProperty("layer_height", "value"):
|
||||||
item["layer_height"] = str(quality.getProperty("layer_height", "value")) + unit
|
item["layer_height"] = str(quality.getProperty("layer_height", "value")) + unit
|
||||||
yield item
|
yield item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user