Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-06-24 21:12:59 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-06-24 21:24:50 +0300
commit107df683a03280ed9cdeb329b7766bef2943991c (patch)
treede84e2a2ea9f9416f1d88e4a349f65b42c0b60d4 /io_scene_fbx/import_fbx.py
parentff3f5574174a6c411015974c4697c4bb2c84e0ef (diff)
Fix T45176: FBX import - mismatch in camera rotation (bad rotation order).
Somehow our mapping from FBX int 'enum' code to string representation of rotation order was pure nonsense, only giving correct result for default 'XYZ'. Note that we fallback to EulerXYZ in case of 'SphericXYZ', not even sure what this is!
Diffstat (limited to 'io_scene_fbx/import_fbx.py')
-rw-r--r--io_scene_fbx/import_fbx.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 2eaf2f95..ed8716a2 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -478,12 +478,12 @@ def blen_read_object_transform_preprocess(fbx_props, fbx_obj, rot_alt_mat, use_p
pst_rot = const_vector_zero_3d
rot_ord = {
0: 'XYZ',
- 1: 'XYZ',
- 2: 'XZY',
- 3: 'YZX',
- 4: 'YXZ',
- 5: 'ZXY',
- 6: 'ZYX',
+ 1: 'XZY',
+ 2: 'YZX',
+ 3: 'YXZ',
+ 4: 'ZXY',
+ 5: 'ZYX',
+ 6: 'XYZ', # XXX eSphericXYZ, not really supported...
}.get(elem_props_get_enum(fbx_props, b'RotationOrder', 0))
else:
pre_rot = const_vector_zero_3d