diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-10-31 17:43:34 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2018-01-01 18:28:45 +0300 |
commit | 4e84d14771b6c32e156469fee965e6db07e0ea84 (patch) | |
tree | 3bd2fc3c18b353e80d74359322dbea74f7748387 | |
parent | d42d87dde88e29df4f59241ba2e34967103492e5 (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...
Conflicts:
io_scene_fbx/__init__.py
-rw-r--r-- | io_scene_fbx/__init__.py | 4 | ||||
-rw-r--r-- | io_scene_fbx/export_fbx_bin.py | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 3c1a8ffd..0521d616 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -21,8 +21,8 @@ bl_info = { "name": "FBX format", "author": "Campbell Barton, Bastien Montagne, Jens Restemeier", - "version": (3, 7, 15), - "blender": (2, 79, 1), + "version": (3, 7, 16), + "blender": (2, 79, 0), "location": "File > Import-Export", "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions", "warning": "", diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index e9e1248e..6c60a165 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -2019,6 +2019,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 @@ -2097,6 +2098,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): @@ -2104,6 +2106,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: |