mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Only fall back to use fdmprinter when the quality profiles for the current machine cannot be found
CURA-4139 UM2 family don't have machine material, but they do have their dedicated profiles. When Cura searches for quality profiles, it should only fall back to use "fdmprinter" as the definition if no quality profile can be found for the current machine.
This commit is contained in:
parent
e8e8081215
commit
23544ad1fe
1 changed files with 4 additions and 1 deletions
|
@ -233,13 +233,16 @@ class QualityManager:
|
|||
filter_by_material = False
|
||||
|
||||
machine_definition = self.getParentMachineDefinition(machine_definition)
|
||||
criteria["definition"] = machine_definition.getId()
|
||||
found_containers_with_machine_definition = ContainerRegistry.getInstance().findInstanceContainers(**criteria)
|
||||
whole_machine_definition = self.getWholeMachineDefinition(machine_definition)
|
||||
if whole_machine_definition.getMetaDataEntry("has_machine_quality"):
|
||||
definition_id = machine_definition.getMetaDataEntry("quality_definition", whole_machine_definition.getId())
|
||||
criteria["definition"] = definition_id
|
||||
|
||||
filter_by_material = whole_machine_definition.getMetaDataEntry("has_materials")
|
||||
else:
|
||||
# only fall back to "fdmprinter" when there is no container for this machine
|
||||
elif not found_containers_with_machine_definition:
|
||||
criteria["definition"] = "fdmprinter"
|
||||
|
||||
# Stick the material IDs in a set
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue