diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-08 02:00:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-08 02:00:35 +0400 |
commit | f463003c6a078a7734035a53ba88ac247d7d69bc (patch) | |
tree | 0e0402dc1e12d0c01161ef2ad2e86f171ae4149c /io_scene_obj/export_obj.py | |
parent | 31312963b2f320ae211aa14a81713b7460a46ec4 (diff) |
update obj import/export for BMesh api changes. (should now works as expected)
Diffstat (limited to 'io_scene_obj/export_obj.py')
-rw-r--r-- | io_scene_obj/export_obj.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index 3317438d..33168d30 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -338,7 +338,7 @@ def write_file(filepath, objects, scene, if EXPORT_UV: faceuv = len(me.uv_textures) > 0 if faceuv: - uv_layer = me.uv_textures.active.data[:] + uv_layer = me.tessface_uv_textures.active.data[:] else: faceuv = False @@ -412,7 +412,7 @@ def write_file(filepath, objects, scene, uv_face_mapping = [[0, 0, 0, 0] for i in range(len(face_index_pairs))] # a bit of a waste for tri's :/ uv_dict = {} # could use a set() here - uv_layer = me.uv_textures.active.data + uv_layer = me.tessface_uv_textures.active.data for f, f_index in face_index_pairs: for uv_index, uv in enumerate(uv_layer[f_index].uv): uvkey = veckey2d(uv) |