Fix T62984: Backtrace when importing FBX file from the Unity asset store.

Although we had no way to reproduce the issue, that fix indeed seems
needed from code logic point of view.

Investigation and patch by Pete Chown (@PeteX), thanks!
This commit is contained in:
Bastien Montagne 2019-03-27 08:52:53 +01:00
parent 7bd1969888
commit d0aa840bff
Notes: blender-bot 2023-02-14 03:13:22 +01:00
Referenced by issue blender/blender#62984, Backtrace when importing FBX file from the Unity asset store
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": (4, 14, 4),
"version": (4, 14, 5),
"blender": (2, 80, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",

View File

@ -717,7 +717,7 @@ def blen_read_animations(fbx_tmpl_astack, fbx_tmpl_alayer, stacks, scene, anim_o
id_data = item.bl_obj
# XXX Ignore rigged mesh animations - those are a nightmare to handle, see note about it in
# FbxImportHelperNode class definition.
if id_data.type == 'MESH' and id_data.parent and id_data.parent.type == 'ARMATURE':
if id_data and id_data.type == 'MESH' and id_data.parent and id_data.parent.type == 'ARMATURE':
continue
if id_data is None:
continue