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>2021-09-15 18:34:32 +0300
committerJulien Duroure <julien.duroure@gmail.com>2021-09-15 18:34:32 +0300
commit29c9aa34754494bc478a08f0be60f38f4844a83d (patch)
tree59cd0f15ca95a01d5ae0a42bec7a5e21ca31ba9f /io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py
parent4d562682c099ce740d705893008a91a30a206710 (diff)
glTF exporter: cleanup: use inverted_safe on matrices
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.py2
1 files changed, 1 insertions, 1 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 d3b9e022..aca85e07 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
@@ -370,7 +370,7 @@ def __gather_output(channels: typing.Tuple[bpy.types.FCurve],
correction_matrix_local = axis_basis_change @ bone.bone.matrix_local
else:
correction_matrix_local = (
- bone.parent.bone.matrix_local.inverted() @
+ bone.parent.bone.matrix_local.inverted_safe() @
bone.bone.matrix_local
)