From 449bf34ddbce209f2ce70537ce1874758feb642a Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 17 Oct 2018 17:14:34 +0000 Subject: Fix FBX exporter since recent material changes --- io_scene_fbx/export_fbx_bin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_scene_fbx/export_fbx_bin.py') 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) -- cgit v1.2.3