From 6e1bb58c53cb56830b0dc34c87781b463a7eb6bc Mon Sep 17 00:00:00 2001
From: Bastien Montagne <montagne29@wanadoo.fr>
Date: Sun, 23 Mar 2014 12:24:09 +0100
Subject: [PATCH] FBX: Fix bug when exporting armatures and baking transform in
 data.

---
 io_scene_fbx/export_fbx_bin.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 9bfe9df8d..cdc14283a 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -685,7 +685,8 @@ def use_bake_space_transform(scene_data, obj):
     # NOTE: Only applies to object types supporting this!!! Currently, only meshes...
     #       Also, do not apply it to children objects.
     # TODO: Check whether this can work for bones too...
-    return scene_data.settings.bake_space_transform and obj.type in {'MESH'} and not has_valid_parent(scene_data, obj)
+    return (scene_data.settings.bake_space_transform and not isinstance(obj, Bone) and
+            obj.type in {'MESH'} and not has_valid_parent(scene_data, obj))
 
 
 def object_matrix(scene_data, obj, armature=None, local_space=False, global_space=False):
-- 
GitLab