mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Disable material if not compatible
Similar to how it's displayed in the printer. Contributes to issue CURA-5460.
This commit is contained in:
parent
16226bdd48
commit
c0fc0a7eba
5 changed files with 12 additions and 7 deletions
|
@ -21,10 +21,11 @@ class BaseMaterialsModel(ListModel):
|
|||
MaterialRole = Qt.UserRole + 5
|
||||
ColorRole = Qt.UserRole + 6
|
||||
ContainerNodeRole = Qt.UserRole + 7
|
||||
CompatibleRole = Qt.UserRole + 8
|
||||
|
||||
extruderPositionChanged = pyqtSignal()
|
||||
|
||||
def __init__(self, parent = None):
|
||||
def __init__(self, parent = None) -> None:
|
||||
super().__init__(parent)
|
||||
self._application = Application.getInstance()
|
||||
self._machine_manager = self._application.getMachineManager()
|
||||
|
@ -36,6 +37,7 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue