-do not use calc_tangents if no UVs

This commit is contained in:
Juan Linietsky 2014-10-14 23:38:10 -03:00
parent cd218b8c09
commit 6e87c80e41

View file

@ -484,7 +484,10 @@ class DaeExporter:
mat_assign=[]
uv_layer_count=len(mesh.uv_textures)
mesh.calc_tangents()
if (len(mesh.uv_textures)):
mesh.calc_tangents()
else:
mesh.calc_normals_split()
for fi in range(len(mesh.polygons)):