Remove compatible role

It is no longer used.

Contributes to issue CURA-5460.
This commit is contained in:
Ghostkeeper 2018-07-10 15:16:16 +02:00
parent f5c9458e86
commit d7eb5a76be
No known key found for this signature in database
GPG Key ID: 5252B696FB5E7C7A
3 changed files with 0 additions and 4 deletions

View File

@ -21,7 +21,6 @@ class BaseMaterialsModel(ListModel):
MaterialRole = Qt.UserRole + 5
ColorRole = Qt.UserRole + 6
ContainerNodeRole = Qt.UserRole + 7
CompatibleRole = Qt.UserRole + 8
extruderPositionChanged = pyqtSignal()
@ -37,7 +36,6 @@ class BaseMaterialsModel(ListModel):
self.addRoleName(self.MaterialRole, "material")
self.addRoleName(self.ColorRole, "color_name")
self.addRoleName(self.ContainerNodeRole, "container_node")
self.addRoleName(self.CompatibleRole, "compatible")
self._extruder_position = 0
self._extruder_stack = None

View File

@ -125,7 +125,6 @@ class BrandMaterialsModel(ListModel):
"material": metadata["material"],
"color_name": metadata["color_name"],
"container_node": container_node,
"compatible": metadata.get("compatible", True)
}
brand_group_dict[brand][material_type].append(item)

View File

@ -54,7 +54,6 @@ class GenericMaterialsModel(BaseMaterialsModel):
"material": metadata["material"],
"color_name": metadata["color_name"],
"container_node": container_node,
"compatible": metadata.get("compatible", True)
}
item_list.append(item)