[Bf-extensions-cvs] [50043c3] dxf_import: FBX IO: Fix wrong orientation of lamps (were rotated 180deg).
Jens Ch. Restemeier
noreply at git.blender.org
Fri Aug 15 12:38:28 CEST 2014
Commit: 50043c326a97df716a7e3839ba81ed0dbd756f87
Author: Jens Ch. Restemeier
Date: Sat Aug 9 21:49:41 2014 +0200
Branches: dxf_import
https://developer.blender.org/rBA50043c326a97df716a7e3839ba81ed0dbd756f87
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