Merge pull request #1503 from N8n5h/fix-export-uv

Fix for faulty "missing uv maps"
This commit is contained in:
Lubos Lenco 2019-12-08 10:01:16 +01:00 committed by GitHub
commit 8a6ad653e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -957,7 +957,7 @@ class ArmoryExporter:
num_verts = len(loops)
num_uv_layers = len(exportMesh.uv_layers)
is_baked = self.has_baked_material(bobject, exportMesh.materials)
has_tex = (self.get_export_uvs(exportMesh) and num_uv_layers > 0) or is_baked
has_tex = (self.get_export_uvs(bobject.data) and num_uv_layers > 0) or is_baked
has_tex1 = has_tex and num_uv_layers > 1
num_colors = len(exportMesh.vertex_colors)
has_col = self.get_export_vcols(exportMesh) and num_colors > 0