From a9048a587d272fe3b3c5e47d15e83c04458fe23b Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 29 Jan 2018 17:25:36 +0100 Subject: [PATCH] Use new open_stream This allows us to do something else than write to a file, too. 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 c3da529a98..4089a1ae3a 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, OpenMode.WriteOnly) + archive.open_stream(stream, "application/x-ufp", OpenMode.WriteOnly) #Store the g-code from the scene. archive.addContentType(extension = "gcode", mime_type = "text/x-gcode")