mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 14:35:54 +08:00
Select correct intent when quality_changes has an intent category
This commit is contained in:
parent
45f3b6eeb2
commit
916bb5a32b
@ -1316,6 +1316,13 @@ class MachineManager(QObject):
|
||||
if not extruder.isEnabled:
|
||||
continue
|
||||
current_category = extruder.intent.getMetaDataEntry("intent_category", "default")
|
||||
if current_category != "default" and current_category != category:
|
||||
category = current_category
|
||||
continue
|
||||
# It's also possible that the qualityChanges has an opinion about the intent_category.
|
||||
# This is in the case that a QC was made on an intent, but none of the materials have that intent.
|
||||
# If the user switches back, we do want the intent to be selected again.
|
||||
current_category = extruder.qualityChanges.getMetaDataEntry("intent_category", "default")
|
||||
if current_category != "default" and current_category != category:
|
||||
category = current_category
|
||||
self.setIntentByCategory(category)
|
||||
|
Loading…
x
Reference in New Issue
Block a user