[Bf-extensions-cvs] [449bf34d] blender2.8: Fix FBX exporter since recent material changes

Dalai Felinto noreply at git.blender.org
Wed Oct 17 19:15:25 CEST 2018


Commit: 449bf34ddbce209f2ce70537ce1874758feb642a
Author: Dalai Felinto
Date:   Wed Oct 17 17:14:34 2018 +0000
Branches: blender2.8
https://developer.blender.org/rBA449bf34ddbce209f2ce70537ce1874758feb642a

Fix FBX exporter since recent material changes

===================================================================

M	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)



More information about the Bf-extensions-cvs mailing list