Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2014-09-04 17:22:05 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-09-04 17:22:05 +0400
commit5adfe7b7a8fb1cfc8de7e24a8ac952c970031ada (patch)
treea6cf7194386dea5d900fd8b26b82a76f2a7c7be5
parenta121740dba9e65931372f9cbe75557c24c19d289 (diff)
Fix T41712: [FBX Importer] Does not impor fbx model
An anim curvenode may be linked to root node it seems? Pffff...
-rw-r--r--io_scene_fbx/import_fbx.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 353c2945..cd0f8355 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))