[Bf-extensions-cvs] [ffd8a687] master: glTF exporter: fix animation when sampling is needed, but was not requested by user
Julien Duroure
noreply at git.blender.org
Sat Feb 22 18:00:07 CET 2020
Commit: ffd8a687247da9695857d5b58ce759eecb016c38
Author: Julien Duroure
Date: Sat Feb 22 17:59:31 2020 +0100
Branches: master
https://developer.blender.org/rBAffd8a687247da9695857d5b58ce759eecb016c38
glTF exporter: fix animation when sampling is needed, but was not requested by user
===================================================================
M io_scene_gltf2/__init__.py
M io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py
===================================================================
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index c96740d7..07434951 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -15,7 +15,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
- "version": (1, 2, 25),
+ "version": (1, 2, 26),
'blender': (2, 82, 7),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py
index 87aa04ff..89559719 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_sampler_keyframes.py
@@ -160,7 +160,7 @@ def get_bone_matrix(blender_object_if_armature: typing.Optional[bpy.types.Object
bpy.context.scene.frame_set(frame)
for pbone in blender_object_if_armature.pose.bones:
if bake_bone is None:
- matrix = pbone.matrix_basis
+ matrix = pbone.matrix_basis.copy()
else:
matrix = pbone.matrix
matrix = blender_object_if_armature.convert_space(pose_bone=pbone, matrix=matrix, from_space='POSE', to_space='LOCAL')
More information about the Bf-extensions-cvs
mailing list