[Bf-extensions-cvs] [5adfe7b] master: Fix T41712: [FBX Importer] Does not impor fbx model
Bastien Montagne
noreply at git.blender.org
Thu Sep 4 15:23:43 CEST 2014
Commit: 5adfe7b7a8fb1cfc8de7e24a8ac952c970031ada
Author: Bastien Montagne
Date: Thu Sep 4 15:22:05 2014 +0200
Branches: master
https://developer.blender.org/rBA5adfe7b7a8fb1cfc8de7e24a8ac952c970031ada
Fix T41712: [FBX Importer] Does not impor fbx model
An anim curvenode may be linked to root node it seems? Pffff...
===================================================================
M io_scene_fbx/import_fbx.py
===================================================================
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 353c294..cd0f835 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -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))
More information about the Bf-extensions-cvs
mailing list