diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-04-02 23:01:02 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-04-02 23:01:02 +0300 |
commit | 1ec2d0647ea24ce71a915cf2f461578f76468b86 (patch) | |
tree | 9b92adf0834585d23cdfeaa1e3381a283a7f492d /io_scene_gltf2/blender/com | |
parent | ec076730b1bbbfff354f7de5a007aade67a945e6 (diff) |
glTF exporter: fix animation tangents
Diffstat (limited to 'io_scene_gltf2/blender/com')
-rwxr-xr-x | io_scene_gltf2/blender/com/gltf2_blender_math.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/com/gltf2_blender_math.py b/io_scene_gltf2/blender/com/gltf2_blender_math.py index dd15ce2f..f3a20038 100755 --- a/io_scene_gltf2/blender/com/gltf2_blender_math.py +++ b/io_scene_gltf2/blender/com/gltf2_blender_math.py @@ -46,7 +46,7 @@ def list_to_mathutils(values: typing.List[float], data_path: str) -> typing.Unio elif target == 'scale': return Vector(values) elif target == 'value': - return values + return Vector(values) return values @@ -145,6 +145,7 @@ def transform_location(location: Vector, transform: Matrix = Matrix.Identity(4)) def transform_rotation(rotation: Quaternion, transform: Matrix = Matrix.Identity(4)) -> Quaternion: """Transform rotation.""" + rotation.normalize() m = rotation.to_matrix().to_4x4() m = multiply(transform, m) return m.to_quaternion() |