obj export fix for meshes with no UV textures

This commit is contained in:
2010-08-28 12:15:14 +00:00
parent b1302c3c04
commit 7a7076c878

View File

@@ -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