[Bf-extensions-cvs] [944016a] master: FBX IO: Fix camera's correction matrix (based on file from T40729).

Bastien Montagne noreply at git.blender.org
Mon Jul 21 17:47:26 CEST 2014


Commit: 944016ab781800d112f66b3b2900bbcc0e85f310
Author: Bastien Montagne
Date:   Mon Jul 21 17:46:22 2014 +0200
Branches: master
https://developer.blender.org/rBA944016ab781800d112f66b3b2900bbcc0e85f310

FBX IO: Fix camera's correction matrix (based on file from T40729).

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

M	io_scene_fbx/fbx_utils.py

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

diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index 3dd234d..0db26c5 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -71,7 +71,7 @@ FBX_KTIME = 46186158000  # This is the number of "ktimes" in one second (yep, pr
 
 
 MAT_CONVERT_LAMP = Matrix.Rotation(math.pi / 2.0, 4, 'X')  # Blender is -Z, FBX is -Y.
-MAT_CONVERT_CAMERA = Matrix.Rotation(math.pi / 2.0, 4, 'Y')  # Blender is -Z, FBX is +X.
+MAT_CONVERT_CAMERA = Matrix.Rotation(math.pi / -2.0, 4, 'Y')  # Blender is -Z, FBX is -X.
 # XXX I can't get this working :(
 #MAT_CONVERT_BONE = Matrix.Rotation(math.pi / 2.0, 4, 'Z')  # Blender is +Y, FBX is -X.
 MAT_CONVERT_BONE = Matrix()



More information about the Bf-extensions-cvs mailing list