diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-10-14 23:38:10 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-10-14 23:38:10 -0300 |
commit | 6e87c80e41857fe4f151cdeb8b9a7206c226bd8f (patch) | |
tree | 297f628cef03c41a768470f9a2d1309107451ec7 /tools/export/blender25 | |
parent | cd218b8c09482f9f9f2d15285d55ad955673697f (diff) |
-do not use calc_tangents if no UVs
Diffstat (limited to 'tools/export/blender25')
-rw-r--r-- | tools/export/blender25/io_scene_dae/export_dae.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py index 74376eff01..7899098e3d 100644 --- a/tools/export/blender25/io_scene_dae/export_dae.py +++ b/tools/export/blender25/io_scene_dae/export_dae.py @@ -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)): |