mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 17:18:58 +08:00
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:
parent
0096fe0de3
commit
69cd00d1c7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user