From 6e87c80e41857fe4f151cdeb8b9a7206c226bd8f Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Tue, 14 Oct 2014 23:38:10 -0300 Subject: [PATCH] -do not use calc_tangents if no UVs --- tools/export/blender25/io_scene_dae/export_dae.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py index 74376eff01e..7899098e3d2 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)):