Fix for faulty "missing uv maps"

Ask for export_uvs to the original object instead of the evaluated copy. Reason is, it seems the dependency graph fails to update
whenever custom properties are set. So for that I think asking the original object in this case could be sufficient to fix it.

The same could be applied to the other functions that are in that chunk of code.
This commit is contained in:
N8n5h 2019-12-05 17:17:51 -03:00
parent 528524d861
commit 4216d327a3

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