[Bf-extensions-cvs] [8da3973] master: FBX IO: Fix wrong orientation of lamps (were rotated 180deg).

Jens Ch. Restemeier noreply at git.blender.org
Sat Aug 9 21:50:36 CEST 2014


Commit: 8da39736e2f4f11d44a84f30c07f008a8ec5316e
Author: Jens Ch. Restemeier
Date:   Sat Aug 9 21:49:41 2014 +0200
Branches: master
https://developer.blender.org/rBA8da39736e2f4f11d44a84f30c07f008a8ec5316e

FBX IO: Fix wrong orientation of lamps (were rotated 180deg).

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

M	io_scene_fbx/fbx_utils.py

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

diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index 7c6b064..e37c938 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -70,7 +70,7 @@ FBX_ANIM_PROPSGROUP_NAME = "d"
 FBX_KTIME = 46186158000  # This is the number of "ktimes" in one second (yep, precision over the nanosecond...)
 
 
-MAT_CONVERT_LAMP = Matrix.Rotation(math.pi / 2.0, 4, 'X')  # Blender is -Z, FBX is -Y.
+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.
 # XXX I can't get this working :(
 # MAT_CONVERT_BONE = Matrix.Rotation(math.pi / 2.0, 4, 'Z')  # Blender is +Y, FBX is -X.



More information about the Bf-extensions-cvs mailing list