Fall back to different quality depending on stack

Falling back to normal.inst.cfg isn't enough. That profile may be filtered out by the machine, variant and material. We need to fall back to a different quality profile depending on the machine, variant and material.

Contributes to issue CURA-844.
This commit is contained in:
Ghostkeeper 2016-09-08 18:50:19 +02:00
parent 263105c3e7
commit e35bc595b6
No known key found for this signature in database
GPG key ID: 701948C5954A7385
2 changed files with 68 additions and 1 deletions

View file

@ -83,7 +83,7 @@ class MachineInstance:
active_quality = VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.translateProfile(self._active_profile_name)
active_quality_changes = "empty_quality_changes"
else:
active_quality = "normal"
active_quality = VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.getQualityFallback(type_name, variant, active_material)
if has_machine_qualities: #Then the profile will have split into multiple.
active_quality_changes = self._active_profile_name + "_" + active_material + "_" + variant
else: