Fix T53065: stupid animation linked to nothing in FBX file broke import.
This commit is contained in:
parent
dd2126b098
commit
89285a88ab
Notes:
blender-bot
2023-02-14 19:34:20 +01:00
Referenced by issue #53065, fbx import fails in some cases with AttributeError when id_data.type is checked on None object
|
@ -21,7 +21,7 @@
|
|||
bl_info = {
|
||||
"name": "FBX format",
|
||||
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
|
||||
"version": (3, 7, 14),
|
||||
"version": (3, 7, 15),
|
||||
"blender": (2, 79, 1),
|
||||
"location": "File > Import-Export",
|
||||
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
|
||||
|
|
|
@ -2801,7 +2801,7 @@ def load(operator, context, filepath="",
|
|||
if lnk_prop in {b'Lcl Translation', b'Lcl Rotation', b'Lcl Scaling'}:
|
||||
# n_uuid can (????) be linked to root '0' node, instead of a mere object node... See T41712.
|
||||
ob = fbx_helper_nodes.get(n_uuid, None)
|
||||
if ob is None:
|
||||
if ob is None or ob.is_root:
|
||||
continue
|
||||
items.append((ob, lnk_prop))
|
||||
elif lnk_prop == b'DeformPercent': # Shape keys.
|
||||
|
|
Loading…
Reference in New Issue