Do not take into account the active materials when importing a quality profile

CURA-4451

When importing a quality profile, it should not fail/succeed based on
which materials are activated at the moment. The imported quality
profile will be available when the user switches to a compatible
settings.
This commit is contained in:
Lipu Fei 2017-10-30 13:13:54 +01:00
parent 0096fe0de3
commit 69cd00d1c7

View File

@ -303,6 +303,9 @@ class CuraContainerRegistry(ContainerRegistry):
if "material" in quality_type_criteria:
materials = ContainerRegistry.getInstance().findInstanceContainers(id = quality_type_criteria["material"])
del quality_type_criteria["material"]
# Do not filter quality containers here with materials because we are trying to import a profile, so it should
# NOT be restricted by the active materials on the current machine.
materials = None
# Check to make sure the imported profile actually makes sense in context of the current configuration.
# This prevents issues where importing a "draft" profile for a machine without "draft" qualities would report as