diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-28 16:15:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-28 16:15:14 +0400 |
commit | 7a7076c878f7f5f5a28653a9a0df76065948ea7a (patch) | |
tree | c0ac1e9bee24f85c114bd3db4797475f87808e54 /release | |
parent | b1302c3c04c3f779b8030d12d7b1d23dc3ea8999 (diff) |
obj export fix for meshes with no UV textures
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/io/export_obj.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/io/export_obj.py b/release/scripts/io/export_obj.py index 37c6059d173..93146922a40 100644 --- a/release/scripts/io/export_obj.py +++ b/release/scripts/io/export_obj.py @@ -413,7 +413,8 @@ def write_file(filepath, objects, scene, if EXPORT_UV: faceuv = len(me.uv_textures) > 0 - uv_layer = me.uv_textures.active.data[:] + if faceuv: + uv_layer = me.uv_textures.active.data[:] else: faceuv = False |