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

Fbx, fbx, fbx... The Fuzzy Format :(
This commit is contained in:
Bastien Montagne 2017-02-01 10:39:07 +01:00
parent 45532d6b7d
commit 1a0b479eda
Notes: blender-bot 2023-02-14 19:42:04 +01:00
Referenced by issue #54704, FBX import from modo : blen_read_material assertion failure
Referenced by issue #50566, FBX import fails to read file exported from Modo
2 changed files with 2 additions and 2 deletions

View File

@ -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",

View File

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