diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-04-11 22:07:09 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-04-11 22:07:09 +0300 |
commit | 76ca00772a56a9779fffb1f2676eeb933c863973 (patch) | |
tree | fd1effcff0bf37b1a7274b2fa78c16907238fe83 /io_scene_gltf2/blender/exp/gltf2_blender_extract.py | |
parent | fe05a06332c060cf16be09e4f332ed7bfc435227 (diff) |
glTF exporter: fix some rotation issue
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_extract.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_extract.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_extract.py b/io_scene_gltf2/blender/exp/gltf2_blender_extract.py index d0347c97..6bdbcdad 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_extract.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_extract.py @@ -102,13 +102,8 @@ def convert_swizzle_scale(scale, export_settings): return Vector((scale[0], scale[1], scale[2])) -def decompose_transition(matrix, context, export_settings): +def decompose_transition(matrix, export_settings): translation, rotation, scale = matrix.decompose() - """Decompose a matrix depending if it is associated to a joint or node.""" - if context == 'NODE': - translation = convert_swizzle_location(translation, export_settings) - rotation = convert_swizzle_rotation(rotation, export_settings) - scale = convert_swizzle_scale(scale, export_settings) # Put w at the end. rotation = Quaternion((rotation[1], rotation[2], rotation[3], rotation[0])) |