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! Conflicts: io_scene_fbx/__init__.py
This commit is contained in:
parent
470e77c2e5
commit
45b1e42fff
Notes:
blender-bot
2023-02-14 19:55:23 +01:00
Referenced by issue #45176, FBX import - mismatch in camera rotation
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue