mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-22 04:29:01 +08:00
Remove compatible role
It is no longer used. Contributes to issue CURA-5460.
This commit is contained in:
parent
f5c9458e86
commit
d7eb5a76be
@ -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
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user