You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
-do not use calc_tangents if no UVs
This commit is contained in:
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user