mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Don't look for quality group for empty material
Just don't add it to the list of available intents then. Contributes to issue CURA-6775.
This commit is contained in:
parent
7942db5147
commit
2cca95384d
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,8 @@ class IntentModel(ListModel):
|
|||
active_material_node = active_variant_node.materials[active_extruder.material.getMetaDataEntry("base_file")]
|
||||
layer_heights_added = []
|
||||
for quality_id, quality_node in active_material_node.qualities.items():
|
||||
if quality_node.quality_type not in quality_groups: # Don't add the empty quality type (or anything else that would crash, defensively).
|
||||
continue
|
||||
quality_group = quality_groups[quality_node.quality_type]
|
||||
layer_height = self._fetchLayerHeight(quality_group)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue