From ebe221f604b9314a93ef029a379d04c620b4722b Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 31 Jan 2018 08:43:40 +0100 Subject: [PATCH] Add origin to thumbnail relation This thumbnail is now about the g-code, so let the relation say that. Contributes to issue CURA-4872. --- plugins/UFPWriter/UFPWriter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UFPWriter/UFPWriter.py b/plugins/UFPWriter/UFPWriter.py index 4089a1ae3a..ff4662ae3c 100644 --- a/plugins/UFPWriter/UFPWriter.py +++ b/plugins/UFPWriter/UFPWriter.py @@ -12,7 +12,7 @@ from UM.PluginRegistry import PluginRegistry #To get the g-code writer. class UFPWriter(MeshWriter): def write(self, stream, nodes, mode = MeshWriter.OutputMode.BinaryMode): 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. archive.addContentType(extension = "gcode", mime_type = "text/x-gcode")