mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
fix translucency model using new permittance setting
This commit is contained in:
parent
88b424d36a
commit
b88183f4a1
3 changed files with 33 additions and 4 deletions
|
@ -35,6 +35,7 @@ class ImageReaderUI(QObject):
|
|||
self.smoothing = 1
|
||||
self.lighter_is_higher = False;
|
||||
self.use_logarithmic_function = False;
|
||||
self.transmittance_1mm = 40.0;
|
||||
|
||||
self._ui_lock = threading.Lock()
|
||||
self._cancelled = False
|
||||
|
@ -76,6 +77,7 @@ class ImageReaderUI(QObject):
|
|||
|
||||
self._ui_view.findChild(QObject, "Base_Height").setProperty("text", str(self.base_height))
|
||||
self._ui_view.findChild(QObject, "Peak_Height").setProperty("text", str(self.peak_height))
|
||||
self._ui_view.findChild(QObject, "Transmittance").setProperty("text", str(self.transmittance_1mm))
|
||||
self._ui_view.findChild(QObject, "Smoothing").setProperty("value", self.smoothing)
|
||||
|
||||
def _createConfigUI(self):
|
||||
|
@ -150,3 +152,6 @@ class ImageReaderUI(QObject):
|
|||
def onConvertFunctionChanged(self, value):
|
||||
self.use_logarithmic_function = (value == 0)
|
||||
|
||||
@pyqtSlot(int)
|
||||
def onTransmittanceChanged(self, value):
|
||||
self.transmittance_1mm = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue