Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-01-22 13:03:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-22 13:03:37 +0300
commit0a2db9698257b70d8eff69051b5b1b577dde73a5 (patch)
treedca5bf42ad71fdf91f006f9faa1a64285c30f1d1 /io_anim_bvh/export_bvh.py
parent5b308e020969a14359f662cb8d69d144288c53a6 (diff)
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.
Diffstat (limited to 'io_anim_bvh/export_bvh.py')
-rw-r--r--io_anim_bvh/export_bvh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_anim_bvh/export_bvh.py b/io_anim_bvh/export_bvh.py
index dc7b4207..25694fa4 100644
--- a/io_anim_bvh/export_bvh.py
+++ b/io_anim_bvh/export_bvh.py
@@ -29,7 +29,7 @@ def write_armature(context, filepath, frame_start, frame_end, global_scale=1.0):
from mathutils import Matrix, Vector, Euler
from math import degrees
- file = open(filepath, "w")
+ file = open(filepath, "w", encoding="utf8", newline="\n")
obj = context.object
arm = obj.data