From 4216d327a3d86bd0f5e1a0df013fb1f4cc6ba5c3 Mon Sep 17 00:00:00 2001 From: N8n5h Date: Thu, 5 Dec 2019 17:17:51 -0300 Subject: [PATCH] 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. --- blender/arm/exporter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blender/arm/exporter.py b/blender/arm/exporter.py index c7978ef0..1eb9338a 100755 --- a/blender/arm/exporter.py +++ b/blender/arm/exporter.py @@ -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