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:
authorJulien Duroure <julien.duroure@gmail.com>2019-05-14 00:42:16 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-05-14 00:42:16 +0300
commitb93459de4bf85b51826cca1c79a2602804e796c4 (patch)
tree1bb67e7643262ca7d9adc92a31d1ffaf085aabb8 /io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py
parent73df2edf635eee24a2c7a67068acd4d9410de9e5 (diff)
glTF exporter: fix various animation & texture export
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py
index dc3b6d30..ea5f9641 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py
@@ -116,8 +116,6 @@ def __gather_output(channels: typing.Tuple[bpy.types.FCurve],
target_datapath = channels[0].data_path
- transform = mathutils.Matrix.Identity(4)
-
is_yup = export_settings[gltf2_blender_export_keys.YUP]
# bone animations need to be handled differently as they are in a different coordinate system
@@ -141,6 +139,10 @@ def __gather_output(channels: typing.Tuple[bpy.types.FCurve],
bone.parent.bone.matrix_local.inverted(), bone.bone.matrix_local)
transform = correction_matrix_local
+ else:
+ transform = mathutils.Matrix.Identity(4)
+ else:
+ transform = parent_inverse
values = []
for keyframe in keyframes: