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")