Filter materials on compatibility for non-machine-specific materials

This only listens to whether the 'base' XML profile is marked as compatible in its metadata, but since the machine doesn't have its own materials, the base is the only one that exists. This needs to be changed when we change the filtering on fdmprinter, hence the comment in the code.

Contributes to issue CURA-2837.
This commit is contained in:
Ghostkeeper 2016-10-31 17:26:27 +01:00
parent 21f1b12ee8
commit 48b57de6df
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75
2 changed files with 3 additions and 1 deletions

View file

@ -153,6 +153,7 @@ Menu
else
{
result.definition = "fdmprinter";
result.compatible = true; //NB: Only checks for compatibility in global version of material, but we don't have machine-specific materials anyway.
}
return result;
}

View file

@ -29,7 +29,8 @@ UM.ManagementPage
}
else
{
result.definition = "fdmprinter"
result.definition = "fdmprinter";
result.compatible = true; //NB: Only checks for compatibility in global version of material, but we don't have machine-specific materials anyway.
}
return result
}