diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-12-19 14:48:49 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-12-19 14:48:49 +0300 |
commit | c0e016dd83a243cb082b21d7477469719f0c9692 (patch) | |
tree | e39931efdfca45fb7557e91ea2a16a75e9b0cd87 | |
parent | 6bc837db2cc73323311f234b2ff2bbc1fc7063ec (diff) |
Fix importer adding needless empty to armatures.
-rw-r--r-- | io_scene_fbx/import_fbx.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py index d25684c9..1db465f9 100644 --- a/io_scene_fbx/import_fbx.py +++ b/io_scene_fbx/import_fbx.py @@ -1443,7 +1443,7 @@ class FbxImportHelperNode: needs_armature = True break if needs_armature: - if self.fbx_type == b'Null': + if self.fbx_type in {b'Null', b'Root'}: # if empty then convert into armature self.is_armature = True else: @@ -1476,7 +1476,7 @@ class FbxImportHelperNode: if in_armature and not self.is_bone and self.has_bone_children: self.is_bone = True # if we are not a null node we need an intermediate node for the data - if self.fbx_type != b'Null': + if self.fbx_type not in {b'Null', b'Root'}: node = FbxImportHelperNode(self.fbx_elem, self.bl_data, None, False) self.fbx_elem = None self.bl_data = None |