From d57fa9e144659689ae0ca6b1f104f191be4b0bf6 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 7 Oct 2013 14:18:22 +0000 Subject: Fix [#36985] FBX Exporter does not export UVs. Grr, another stupid mistake, we always need me.uv_textures, even if we do not actually export textures! --- io_scene_fbx/export_fbx.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/io_scene_fbx/export_fbx.py b/io_scene_fbx/export_fbx.py index ca14c177..e477d77f 100644 --- a/io_scene_fbx/export_fbx.py +++ b/io_scene_fbx/export_fbx.py @@ -1538,6 +1538,7 @@ def save_single(operator, scene, filepath="", uvtextures = [] if do_uvs: uvlayers = me.uv_layers + uvtextures = me.uv_textures t_uv = [None] * len(me.loops) * 2 t_pi = None uv2idx = None @@ -1545,7 +1546,6 @@ def save_single(operator, scene, filepath="", _nchunk = 6 # Number of UVs per line _nchunk_idx = 64 # Number of UV indices per line if do_textures: - uvtextures = me.uv_textures is_tex_unique = len(my_mesh.blenTextures) == 1 tex2idx = {None: -1} tex2idx.update({tex: i for i, tex in enumerate(my_mesh.blenTextures)}) @@ -1595,6 +1595,7 @@ def save_single(operator, scene, filepath="", '\n\t\t\tTextureId: ') fw('\n\t\t}') del t_uv + del t_pi # Done with UV/textures. if do_materials: -- cgit v1.2.3