FBX: Fix bug when exporting armatures and baking transform in data.

This commit is contained in:
Bastien Montagne 2014-03-23 12:24:09 +01:00
parent 7223289719
commit 6e1bb58c53
1 changed files with 2 additions and 1 deletions

View File

@ -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):