[Bf-extensions-cvs] [36023a0] master: FBX export: Fix a nasty bug related to animation baking, that would leave matrices not in sync with actual loc/rot/scale values (and hence export wrong 'rest' transform of some objects).

Bastien Montagne noreply at git.blender.org
Fri May 23 19:39:59 CEST 2014


Commit: 36023a0912c7e3f3f68611b2411aa5c7b9077a02
Author: Bastien Montagne
Date:   Fri May 23 19:29:58 2014 +0200
https://developer.blender.org/rBA36023a0912c7e3f3f68611b2411aa5c7b9077a02

FBX export: Fix a nasty bug related to animation baking, that would leave matrices
not in sync with actual loc/rot/scale values (and hence export wrong 'rest' transform
of some objects).

===================================================================

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 e6cec4f..dac4721 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -1840,6 +1840,9 @@ def fbx_animations_objects(scene_data):
     if not scene_data.settings.bake_anim_use_nla_strips or not animations:
         add_anim(animations, fbx_animations_objects_do(scene_data, None, scene.frame_start, scene.frame_end, False))
 
+    # Be sure to update all matrices back to org state!
+    scene.frame_set(scene.frame_current, 0.0)
+
     return animations, frame_start, frame_end



More information about the Bf-extensions-cvs mailing list