mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
-do not use calc_tangents if no UVs
This commit is contained in:
parent
cd218b8c09
commit
6e87c80e41
@ -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)):
|
||||
|
Loading…
Reference in New Issue
Block a user