From 20e4c8056c3c7f107169c80e4fd7b316acc7747d Mon Sep 17 00:00:00 2001 From: Bastien Montagne <montagne29@wanadoo.fr> Date: Sun, 25 Jan 2015 12:37:07 +0100 Subject: [PATCH] Fix T43279: FBX exporter would fail on 'used' valid texslots with None texture. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m quite not sure whether such a situation is supposed to happen, but does not hurt protecting against it anyway. --- io_scene_fbx/export_fbx_bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index 5cc4d5a8f..c7f004a3e 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), -- GitLab