mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add support for global quality profiles
Instead of using one of the extruder profiles as global quality, use proper global qualities. Contributes to CURA-2646
This commit is contained in:
parent
2bff94ba9f
commit
e82b2c0f80
2 changed files with 11 additions and 5 deletions
|
@ -769,8 +769,13 @@ class MachineManager(QObject):
|
|||
|
||||
if extruder_stacks:
|
||||
# Add an extra entry for the global stack.
|
||||
result.append({"stack": global_container_stack, "quality": result[0]["quality"],
|
||||
"quality_changes": empty_quality_changes})
|
||||
global_quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [], global_quality = "True")
|
||||
|
||||
if not global_quality:
|
||||
global_quality = self._empty_quality_container
|
||||
|
||||
result.append({"stack": global_container_stack, "quality": global_quality, "quality_changes": empty_quality_changes})
|
||||
|
||||
return result
|
||||
|
||||
## Determine the quality and quality changes settings for the current machine for a quality changes name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue