Revert making the camera image black while it doesn't react

This was giving segfaults sometimes on my computer. I suspect it's because the camera image could have been written to by both this Python code and by the camera itself, giving it a sort of data race or maybe that the image was discarded by the camera while it's being written to by Python. In any case, this should make it more stable.

Contributes to issue CURA-4376.
This commit is contained in:
Ghostkeeper 2017-09-27 14:20:20 +02:00
parent 85efd9249c
commit d8c1546be3
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -340,10 +340,6 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
pass # It can happen that the wrapped c++ object is already deleted.
self._image_reply = None
self._image_request = None
if self._use_stream:
# Reset image (To prevent old images from being displayed)
self._camera_image.fill(QColor(0, 0, 0))
self.newImage.emit()
def _startCamera(self):
if self._use_stream: