mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:05:53 +08:00
Use right enum
This commit is contained in:
parent
d240feb78a
commit
5aceec6209
@ -296,7 +296,7 @@ class SolidView(View):
|
|||||||
self._next_xray_checking_time = time.time() + self._xray_checking_update_time
|
self._next_xray_checking_time = time.time() + self._xray_checking_update_time
|
||||||
|
|
||||||
xray_img = self._xray_pass.getOutput()
|
xray_img = self._xray_pass.getOutput()
|
||||||
xray_img = xray_img.convertToFormat(QImage.Format_RGB888)
|
xray_img = xray_img.convertToFormat(QImage.Format.Format_RGB888)
|
||||||
|
|
||||||
# We can't just read the image since the pixels are aligned to internal memory positions.
|
# We can't just read the image since the pixels are aligned to internal memory positions.
|
||||||
# xray_img.byteCount() != xray_img.width() * xray_img.height() * 3
|
# xray_img.byteCount() != xray_img.width() * xray_img.height() * 3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user