Browse Source

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.
Ghostkeeper 8 years ago
parent
commit
48b57de6df

+ 1 - 0
resources/qml/Menus/MaterialMenu.qml

@@ -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;
     }

+ 2 - 1
resources/qml/Preferences/MaterialsPage.qml

@@ -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
         }