[Bf-extensions-cvs] [b55c70d] fbx_io_development: Fix issue with armature import (caused by rootbones-as-armatures commit).

Bastien Montagne noreply at git.blender.org
Sun Jul 6 19:16:02 CEST 2014


Commit: b55c70d72ae9271aa0ba4a29d6d5fcb18330ddc7
Author: Bastien Montagne
Date:   Sun Jul 6 17:20:01 2014 +0200
https://developer.blender.org/rBAb55c70d72ae9271aa0ba4a29d6d5fcb18330ddc7

Fix issue with armature import (caused by rootbones-as-armatures commit).

===================================================================

M	io_scene_fbx/import_fbx.py

===================================================================

diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 866c3f1..7d8a8bd 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -1579,7 +1579,7 @@ def load(operator, context, filepath="",
                     if p_ctype.props[0] != b'OO':
                         continue
                     fbx_pdata, bl_pdata = p_item = fbx_table_nodes.get(p_uuid, (None, None))
-                    if (fbx_pdata and fbx_pdata.id == b'Model' and fbx_pdata.props[2] in {b'LimbNode', b'Root'}):
+                    if (fbx_pdata and fbx_pdata.id == b'Model' and fbx_pdata.props[2] in {b'LimbNode', b'Root', b'Null'}):
                         # Not a root bone...
                         root_bone = False
                 if not root_bone:



More information about the Bf-extensions-cvs mailing list