[Bf-extensions-cvs] [1a0b479] master: Fix T50566: FBX import fails to read file exported from Modo

Bastien Montagne noreply at git.blender.org
Wed Feb 1 10:42:03 CET 2017


Commit: 1a0b479eda66cd8971a2625bb4197950f03828c4
Author: Bastien Montagne
Date:   Wed Feb 1 10:39:07 2017 +0100
Branches: master
https://developer.blender.org/rBA1a0b479eda66cd8971a2625bb4197950f03828c4

Fix T50566: FBX import fails to read file exported from Modo

Fbx, fbx, fbx... The Fuzzy Format :(

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

M	io_scene_fbx/__init__.py
M	io_scene_fbx/import_fbx.py

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

diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index e187259..9fe15b8 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,7 +21,7 @@
 bl_info = {
     "name": "FBX format",
     "author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
-    "version": (3, 7, 8),
+    "version": (3, 7, 9),
     "blender": (2, 77, 0),
     "location": "File > Import-Export",
     "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 46cef68..87e1973 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -1281,7 +1281,7 @@ def blen_read_material(fbx_tmpl, fbx_obj, settings):
 
     fbx_props = (elem_find_first(fbx_obj, b'Properties70'),
                  elem_find_first(fbx_tmpl, b'Properties70', fbx_elem_nil))
-    assert(fbx_props[0] is not None)
+    #~ assert(fbx_props[0] is not None)  # Some Material may be missing that one, it seems... see T50566.
 
     ma_diff = elem_props_get_color_rgb(fbx_props, b'DiffuseColor', const_color_white)
     ma_spec = elem_props_get_color_rgb(fbx_props, b'SpecularColor', const_color_white)



More information about the Bf-extensions-cvs mailing list