mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Add origin to thumbnail relation
This thumbnail is now about the g-code, so let the relation say that. Contributes to issue CURA-4872.
This commit is contained in:
parent
a9048a587d
commit
ebe221f604
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ from UM.PluginRegistry import PluginRegistry #To get the g-code writer.
|
||||||
class UFPWriter(MeshWriter):
|
class UFPWriter(MeshWriter):
|
||||||
def write(self, stream, nodes, mode = MeshWriter.OutputMode.BinaryMode):
|
def write(self, stream, nodes, mode = MeshWriter.OutputMode.BinaryMode):
|
||||||
archive = VirtualFile()
|
archive = VirtualFile()
|
||||||
archive.open_stream(stream, "application/x-ufp", OpenMode.WriteOnly)
|
archive.openStream(stream, "application/x-ufp", OpenMode.WriteOnly)
|
||||||
|
|
||||||
#Store the g-code from the scene.
|
#Store the g-code from the scene.
|
||||||
archive.addContentType(extension = "gcode", mime_type = "text/x-gcode")
|
archive.addContentType(extension = "gcode", mime_type = "text/x-gcode")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue