[Bf-extensions-cvs] [2f6c86c] master: FBX IO: Atempt to fix camera/lamp orientations issues.
Bastien Montagne
noreply at git.blender.org
Sun Jul 12 12:41:49 CEST 2015
Commit: 2f6c86c461c9974db22a775a4ab4db6deb9fc061
Author: Bastien Montagne
Date: Sun Jul 12 12:41:14 2015 +0200
Branches: master
https://developer.blender.org/rBA2f6c86c461c9974db22a775a4ab4db6deb9fc061
FBX IO: Atempt to fix camera/lamp orientations issues.
===================================================================
M io_scene_fbx/__init__.py
M io_scene_fbx/fbx_utils.py
===================================================================
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 184e667..0259bbd 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,7 +21,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
- "version": (3, 4, 5),
+ "version": (3, 4, 6),
"blender": (2, 74, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index 651cac7..4df6877 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -71,8 +71,8 @@ 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_CAMERA = Matrix.Rotation(math.pi / -2.0, 4, 'Y') # Blender is -Z, FBX is -X.
+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.
MAT_CONVERT_BONE = Matrix()
More information about the Bf-extensions-cvs
mailing list