diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-25 14:37:07 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-01-25 14:37:07 +0300 |
commit | 20e4c8056c3c7f107169c80e4fd7b316acc7747d (patch) | |
tree | da1ac5d406bac548511c9d57f3afa21b7d7a65f8 /io_scene_fbx | |
parent | fe639c3459aa9dd8b26eaac91aba1f19323780ef (diff) |
Fix T43279: FBX exporter would fail on 'used' valid texslots with None texture.
I’m quite not sure whether such a situation is supposed to happen, but does not hurt
protecting against it anyway.
Diffstat (limited to 'io_scene_fbx')
-rw-r--r-- | io_scene_fbx/export_fbx_bin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index 5cc4d5a8..c7f004a3 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -2182,7 +2182,7 @@ def fbx_data_from_scene(scene, settings): if check_skip_material(mat): continue for tex, use_tex in zip(mat.texture_slots, mat.use_textures): - if tex is None or not use_tex: + if tex is None or tex.texture is None or not use_tex: continue # For now, only consider image textures. # Note FBX does has support for procedural, but this is not portable at all (opaque blob), |