diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-10-17 20:14:34 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-10-17 20:14:34 +0300 |
commit | 449bf34ddbce209f2ce70537ce1874758feb642a (patch) | |
tree | 3b15a2c9d7514bc9441142130829e886bbe1f99a | |
parent | d10b5e3d8113db1bf05705847bd553e3707bb4d2 (diff) |
Fix FBX exporter since recent material changes
-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 b13bc978..c3bfec6c 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -2305,7 +2305,7 @@ def fbx_data_from_scene(scene, depsgraph, settings): ma_wrap = node_shader_utils.PrincipledBSDFWrapper(ma, is_readonly=True) for sock_name, fbx_name in PRINCIPLED_TEXTURE_SOCKETS_TO_FBX: tex = getattr(ma_wrap, sock_name) - if tex.image is None: + if tex is None or tex.image is None: continue blender_tex_key = (ma, sock_name) data_textures[blender_tex_key] = (get_blender_nodetexture_key(*blender_tex_key), fbx_name) |