mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Merge branch 'feature_intent_per_quality' of https://github.com/Ultimaker/Cura into feature_intent_per_quality
This commit is contained in:
commit
d076bfae77
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,8 @@ class IntentManager(QObject):
|
|||
# the printer using any configuration. This will only list the intent
|
||||
# categories that are available using the current configuration (but the
|
||||
# union over the extruders).
|
||||
# \return List of all categories in the current configurations of all
|
||||
# extruders.
|
||||
def currentAvailableIntentCategories(self) -> List[str]:
|
||||
global_stack = CuraApplication.getInstance().getGlobalContainerStack()
|
||||
current_definition_id = global_stack.definition.getMetaDataEntry("id")
|
||||
|
@ -119,6 +121,7 @@ class IntentManager(QObject):
|
|||
|
||||
application.getMachineManager().setQualityGroupByQualityType(quality_type)
|
||||
|
||||
## Selects the default intents on every extruder.
|
||||
def selectDefaultIntent(self) -> None:
|
||||
for extruder_stack in ExtruderManager.getInstance().getUsedExtruderStacks():
|
||||
extruder_stack.intent = self.defaultIntent()
|
Loading…
Add table
Add a link
Reference in a new issue