diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-03-24 18:29:23 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-03-24 18:29:23 +0300 |
commit | 1f43f9076360103027d40f2a62a22621ffa50351 (patch) | |
tree | 8ada6c92ea71fb82be09831e4b3c9b09f4e4e29d /io_scene_fbx/__init__.py | |
parent | 812130fd0b0a54df16f233e78af176868e8deae6 (diff) |
Fix T41719: UE4 - Blender FBX Export to Unreal Engine 4 Bone Translation Error.
Well, not exactly a fix, since the buggy behavior from FBXSDK side makes no sense to me.
So it's rather a hack to make that stupid piece of junk happy - now you can (optionally,
but ON by default) force exporting anim keys for all bones of an armature.
Should be safe for 2.74, just adds a new option, cannot see how it could break existing stuff.
Diffstat (limited to 'io_scene_fbx/__init__.py')
-rw-r--r-- | io_scene_fbx/__init__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 85c8be0a..46fa90da 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -21,7 +21,7 @@ bl_info = { "name": "FBX format", "author": "Campbell Barton, Bastien Montagne, Jens Restemeier", - "version": (3, 2, 1), + "version": (3, 2, 2), "blender": (2, 74, 0), "location": "File > Import-Export", "description": "FBX IO meshes, UV's, vertex colors, materials, " @@ -331,6 +331,11 @@ class ExportFBX(bpy.types.Operator, ExportHelper, IOFBXOrientationHelper): description="Export baked keyframe animation", default=True, ) + bake_anim_use_all_bones = BoolProperty( + name="Key All Bones", + description="Force exporting at least one key of animation for all bones (needed with some target apps, like UE4)", + default=True, + ) bake_anim_use_nla_strips = BoolProperty( name="NLA Strips", description="Export each non-muted NLA strip as a separated FBX's AnimStack, if any, " @@ -439,6 +444,7 @@ class ExportFBX(bpy.types.Operator, ExportHelper, IOFBXOrientationHelper): layout.prop(self, "bake_anim") col = layout.column() col.enabled = self.bake_anim + col.prop(self, "bake_anim_use_all_bones") col.prop(self, "bake_anim_use_nla_strips") col.prop(self, "bake_anim_use_all_actions") col.prop(self, "bake_anim_step") |