Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-10-07 18:18:22 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-10-07 18:18:22 +0400
commitd57fa9e144659689ae0ca6b1f104f191be4b0bf6 (patch)
treeec524d536174904bc843d8041ad05bb864558970
parente1f7fae61cdf6e13d497ba9171971f25526d0557 (diff)
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!
-rw-r--r--io_scene_fbx/export_fbx.py3
1 files changed, 2 insertions, 1 deletions
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: