|
@@ -25,9 +25,10 @@ class ExtruderConfigurationModel(QObject):
|
|
|
return self._position
|
|
|
|
|
|
def setMaterial(self, material: Optional[MaterialOutputModel]) -> None:
|
|
|
- if self._material != material:
|
|
|
- self._material = material
|
|
|
- self.extruderConfigurationChanged.emit()
|
|
|
+ if material is None or self._material == material:
|
|
|
+ return
|
|
|
+ self._material = material
|
|
|
+ self.extruderConfigurationChanged.emit()
|
|
|
|
|
|
@pyqtProperty(QObject, fset = setMaterial, notify = extruderConfigurationChanged)
|
|
|
def activeMaterial(self) -> Optional[MaterialOutputModel]:
|