diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-10-31 17:43:34 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-10-31 17:43:34 +0300 |
commit | 0b286650b3e9913196bd16874c4840165392803d (patch) | |
tree | ad7f37d8f2b728e6e91599d92c1d639be61c31c9 /io_scene_fbx | |
parent | 3e29cb17a7a0964259b44e5053c7ae925d2874ec (diff) |
Fix T53202: Complex armature with bone constraints, FBX export bug.
Need more scene updates in FBX anim export code to ensure we do get sane
poses...
Diffstat (limited to 'io_scene_fbx')
-rw-r--r-- | io_scene_fbx/__init__.py | 2 | ||||
-rw-r--r-- | io_scene_fbx/export_fbx_bin.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 97228a74..d07cccdd 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, 8, 1), + "version": (3, 8, 2), "blender": (2, 79, 1), "location": "File > Import-Export", "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions", diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index f9d6ceee..58f9f7c6 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -2021,6 +2021,7 @@ def fbx_animations(scene_data): add_anim(animations, animated, fbx_animations_do(scene_data, strip, strip.frame_start, strip.frame_end, True, force_keep=True)) strip.mute = True + scene.frame_set(scene.frame_current, 0.0) for strip in strips: strip.mute = False @@ -2099,6 +2100,7 @@ def fbx_animations(scene_data): pbo.matrix_basis = mat.copy() ob.animation_data.action = org_act restore_object(ob, ob_copy) + scene.frame_set(scene.frame_current, 0.0) if pbones_matrices is not ...: for pbo, mat in zip(ob.pose.bones, pbones_matrices): @@ -2106,6 +2108,7 @@ def fbx_animations(scene_data): ob.animation_data.action = org_act bpy.data.objects.remove(ob_copy) + scene.frame_set(scene.frame_current, 0.0) # Global (containing everything) animstack, only if not exporting NLA strips and/or all actions. if not scene_data.settings.bake_anim_use_nla_strips and not scene_data.settings.bake_anim_use_all_actions: |