From 0a2db9698257b70d8eff69051b5b1b577dde73a5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 22 Jan 2011 10:03:37 +0000 Subject: write \n even on windows so files can be compared between windows and linux (for testing). most editors (besides notepad) will open these files without trouble. --- io_mesh_ply/export_ply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_mesh_ply') diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py index 271a2d23..11a16438 100644 --- a/io_mesh_ply/export_ply.py +++ b/io_mesh_ply/export_ply.py @@ -45,7 +45,7 @@ def save(operator, context, filepath="", use_modifiers=True, use_normals=True, u if not obj: raise Exception("Error, Select 1 active object") - file = open(filepath, 'w') + file = open(filepath, "w", encoding="utf8", newline="\n") if scene.objects.active: bpy.ops.object.mode_set(mode='OBJECT') -- cgit v1.2.3