소스 검색

-do not use calc_tangents if no UVs

Juan Linietsky 11 년 전
부모
커밋
6e87c80e41
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      tools/export/blender25/io_scene_dae/export_dae.py

+ 4 - 1
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)):