chiark / gitweb /
WIP: Add material_types combobox to quickprint profile
[cura.git] / Cura / util / resources.py
index c0ce5f367b934e2bdf85f746128e7bf9bd56f265..0841711e0fe98cb52ff23b98d50f7cf5e32baea4 100644 (file)
@@ -204,7 +204,12 @@ class PrintMaterial(ProfileIni):
 
                self.profiles = []
                self.options = []
+               self.types = []
+               types = self._getProfileInfo(self.ini, 'material_types')
 
+               if types != None:
+                       for type in types.split('|'):
+                               self.types.append(type.strip())
                self.parseDirectory(self.path)
 
        def parseDirectory(self, path):