glTF exporter: fix animation when sampling is needed, but was not requested by user
This commit is contained in:
parent
cc3e0cce4a
commit
ffd8a68724
|
@ -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',
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue