CURA-4425 the thumbnail now crops correctly

This commit is contained in:
Jack Ha 2018-02-05 14:36:42 +01:00
parent a3ed385259
commit 0e7edc3eaf
2 changed files with 24 additions and 52 deletions

View file

@ -23,7 +23,7 @@ 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()
self._snapshot = Snapshot.snapshot(width = 300, height = 300)
def write(self, stream, nodes, mode = MeshWriter.OutputMode.BinaryMode):
archive = VirtualFile()