diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-07-25 06:02:10 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-07-25 06:02:10 +0400 |
commit | f7ed59065a9069de777e4957f48650d72bd2a400 (patch) | |
tree | ee3ea6c554015dc242c89dbfe72b51a1963e4121 /io_scene_fbx | |
parent | c8c166df88185920d098144dd4d8c894d2288a4c (diff) |
reverse matrix, vector multiplication order,
previous order deprecated.
Diffstat (limited to 'io_scene_fbx')
-rw-r--r-- | io_scene_fbx/export_fbx.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/io_scene_fbx/export_fbx.py b/io_scene_fbx/export_fbx.py index 4cc7adb7..61c27059 100644 --- a/io_scene_fbx/export_fbx.py +++ b/io_scene_fbx/export_fbx.py @@ -374,7 +374,7 @@ def save_single(operator, scene, filepath="", if obj_type == 'LAMP': matrix_rot = matrix_rot * mtx_x90 elif obj_type == 'CAMERA': - y = Vector((0.0, 1.0, 0.0)) * matrix_rot + y = matrix_rot * Vector((0.0, 1.0, 0.0)) matrix_rot = Matrix.Rotation(math.pi / 2.0, 3, y) * matrix_rot return matrix_rot @@ -467,7 +467,7 @@ def save_single(operator, scene, filepath="", if ob and ob.type == 'LAMP': matrix_rot = matrix_rot * mtx_x90 elif ob and ob.type == 'CAMERA': - y = Vector((0.0, 1.0, 0.0)) * matrix_rot + y = matrix_rot * Vector((0.0, 1.0, 0.0)) matrix_rot = Matrix.Rotation(math.pi / 2.0, 3, y) * matrix_rot # else do nothing. @@ -922,8 +922,8 @@ def save_single(operator, scene, filepath="", ) file.write('\n\t\tPosition: %.6f,%.6f,%.6f' % loc) - file.write('\n\t\tUp: %.6f,%.6f,%.6f' % tuple(Vector((0.0, 1.0, 0.0)) * matrix_rot)) - file.write('\n\t\tLookAt: %.6f,%.6f,%.6f' % tuple(Vector((0.0, 0.0, -1.0)) * matrix_rot)) + file.write('\n\t\tUp: %.6f,%.6f,%.6f' % (matrix_rot * Vector((0.0, 1.0, 0.0)))[:]) + file.write('\n\t\tLookAt: %.6f,%.6f,%.6f' % (matrix_rot * Vector((0.0, 0.0, -1.0)))[:]) #file.write('\n\t\tUp: 0,0,0' ) #file.write('\n\t\tLookAt: 0,0,0' ) |