Fix T41712: [FBX Importer] Does not impor fbx model

An anim curvenode may be linked to root node it seems? Pffff...
This commit is contained in:
Bastien Montagne 2014-09-04 15:22:05 +02:00
parent a121740dba
commit 5adfe7b7a8
Notes: blender-bot 2023-02-14 20:04:13 +01:00
Referenced by issue #41712, [FBX Importer] Does not impor fbx model
1 changed files with 2 additions and 1 deletions

View File

@ -2018,7 +2018,8 @@ def load(operator, context, filepath="",
continue
lnk_prop = n_ctype.props[3]
if lnk_prop in {b'Lcl Translation', b'Lcl Rotation', b'Lcl Scaling'}:
ob = fbx_table_nodes[n_uuid][1]
# n_uuid can (????) be linked to root '0' node, instead of a mere object node... See T41712.
ob = fbx_table_nodes.get(n_uuid, (None, None))[1]
if ob is None:
continue
items.append((ob, lnk_prop))