[Bf-extensions-cvs] [78103e4] fbx_io_development: Armature import: accept 'Root' bones too!

Bastien Montagne noreply at git.blender.org
Sun May 11 19:14:18 CEST 2014


Commit: 78103e46ba0b2815b71d1dda6bc4325b3771cbfc
Author: Bastien Montagne
Date:   Sun May 11 19:13:07 2014 +0200
https://developer.blender.org/rBA78103e46ba0b2815b71d1dda6bc4325b3771cbfc

Armature import: accept 'Root' bones too!

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

M	io_scene_fbx/import_fbx.py

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

diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 77e3610..724ad96 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -1337,7 +1337,8 @@ def load(operator, context, filepath="",
                     if b_ctype.props[0] != b'OO':
                         continue
                     fbx_bdata, bl_bdata = b_item = fbx_table_nodes.get(b_uuid, (None, None))
-                    if fbx_bdata is None or fbx_bdata.id != b'Model' or fbx_bdata.props[2] != b'LimbNode':
+                    if (fbx_bdata is None or fbx_bdata.id != b'Model' or
+                        fbx_bdata.props[2] not in {b'LimbNode', b'Root'}):
                         continue
 
                     # Find bone's size.



More information about the Bf-extensions-cvs mailing list