[Bf-extensions-cvs] [6e1bb58] master: FBX: Fix bug when exporting armatures and baking transform in data.
Bastien Montagne
noreply at git.blender.org
Sun Mar 23 12:24:59 CET 2014
Commit: 6e1bb58c53cb56830b0dc34c87781b463a7eb6bc
Author: Bastien Montagne
Date: Sun Mar 23 12:24:09 2014 +0100
https://developer.blender.org/rBA6e1bb58c53cb56830b0dc34c87781b463a7eb6bc
FBX: Fix bug when exporting armatures and baking transform in data.
===================================================================
M io_scene_fbx/export_fbx_bin.py
===================================================================
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index 9bfe9df..cdc1428 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):
More information about the Bf-extensions-cvs
mailing list