mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 21:25:58 +08:00
Account for empty material when switching quality changes
Contributes to CURA-2652
This commit is contained in:
parent
78ac4ef999
commit
2c2bf7823f
@ -813,6 +813,9 @@ class MachineManager(QObject):
|
|||||||
# For the global stack, find a quality which matches the quality_type in
|
# For the global stack, find a quality which matches the quality_type in
|
||||||
# the quality changes profile and also satisfies any material constraints.
|
# the quality changes profile and also satisfies any material constraints.
|
||||||
quality_type = global_quality_changes.getMetaDataEntry("quality_type")
|
quality_type = global_quality_changes.getMetaDataEntry("quality_type")
|
||||||
|
if global_container_stack.getProperty("machine_extruder_count", "value") > 1:
|
||||||
|
global_quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [], global_quality = True)
|
||||||
|
else:
|
||||||
global_quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [material])
|
global_quality = quality_manager.findQualityByQualityType(quality_type, global_machine_definition, [material])
|
||||||
|
|
||||||
# Find the values for each extruder.
|
# Find the values for each extruder.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user