Merge branch '4.3' of github.com:Ultimaker/Cura

This commit is contained in:
Jaime van Kessel 2019-09-24 09:27:23 +02:00
commit 2d1dec098b
No known key found for this signature in database
GPG key ID: 3710727397403C91
7 changed files with 159 additions and 153 deletions

View file

@ -38,7 +38,11 @@ class UFPWriter(MeshWriter):
def _createSnapshot(self, *args):
# must be called from the main thread because of OpenGL
Logger.log("d", "Creating thumbnail image...")
self._snapshot = Snapshot.snapshot(width = 300, height = 300)
try:
self._snapshot = Snapshot.snapshot(width = 300, height = 300)
except Exception:
Logger.logException("w", "Failed to create snapshot image")
self._snapshot = None # Failing to create thumbnail should not fail creation of UFP
# This needs to be called on the main thread (Qt thread) because the serialization of material containers can
# trigger loading other containers. Because those loaded containers are QtObjects, they must be created on the