Fix thumbnail creation

CURA-9120
This commit is contained in:
Jaime van Kessel 2022-04-13 16:53:11 +02:00
parent 204eeaf272
commit 50954552d2
4 changed files with 7 additions and 7 deletions

View file

@ -157,7 +157,7 @@ class ThreeMFWriter(MeshWriter):
snapshot = self._createSnapshot()
if snapshot:
thumbnail_buffer = QBuffer()
thumbnail_buffer.open(QBuffer.ReadWrite)
thumbnail_buffer.open(QBuffer.OpenModeFlag.ReadWrite)
snapshot.save(thumbnail_buffer, "PNG")
thumbnail_file = zipfile.ZipInfo("Metadata/thumbnail.png")