mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Fix fallback for when a material was selected that didn't have the current intent.
CURA-12406
This commit is contained in:
parent
6833a38999
commit
beac50d44f
1 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,12 @@ class ActiveIntentQualitiesModel(ListModel):
|
|||
new_items.append(intent)
|
||||
added_quality_type_set.add(intent["quality_type"])
|
||||
|
||||
# If there aren't any possibilities when the Intent is kept the same, set it 'back' to default.
|
||||
if len(new_items) == 0 and self._intent_category != "default":
|
||||
IntentManager.getInstance().selectIntent("default", global_stack.quality.getMetaDataEntry("quality_type"))
|
||||
self._update()
|
||||
return
|
||||
|
||||
new_items = sorted(new_items, key=lambda x: x["layer_height"])
|
||||
self.setItems(new_items)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue