From f7df475c0ba9c3c6b63461e0fbf68e9fa0cbf4ef Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Fri, 27 May 2011 14:30:45 +0000
Subject: [PATCH] own failt, bad assumption r1967, when switching the order of
 matrix multiplication.

---
 io_scene_fbx/export_fbx.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/io_scene_fbx/export_fbx.py b/io_scene_fbx/export_fbx.py
index fa0b5bfdf..f41700728 100644
--- a/io_scene_fbx/export_fbx.py
+++ b/io_scene_fbx/export_fbx.py
@@ -362,8 +362,7 @@ def save_single(operator, scene, filepath="",
 
         def setPoseFrame(self, f, fake=False):
             if fake:
-                # annoying, have to clear global_matrix
-                self.__anim_poselist[f] = global_matrix * self.matrixWorld
+                self.__anim_poselist[f] = self.matrixWorld * global_matrix.inverted()
             else:
                 self.__anim_poselist[f] = self.blenObject.matrix_world.copy()
 
-- 
GitLab