Fix quality lookup

CURA-5694

For a machine, if it has extruder-specific qualities, when we look up
extruder qualities, we should NOT fall back to use the global qualities.
This commit is contained in:
Lipu Fei 2018-09-10 12:13:35 +02:00
parent 5139e61475
commit d01ec7872d
2 changed files with 23 additions and 11 deletions

View file

@ -196,6 +196,9 @@ class GlobalStack(CuraContainerStack):
def getHasVariants(self) -> bool:
return parseBool(self.getMetaDataEntry("has_variants", False))
def getHasMachineQuality(self) -> bool:
return parseBool(self.getMetaDataEntry("has_machine_quality", False))
## private:
global_stack_mime = MimeType(