glTF exporter: fix bad check about keyframes at different timing

This commit is contained in:
Julien Duroure 2019-06-02 05:10:45 +02:00
parent 9666bfc81d
commit 080d204770
2 changed files with 2 additions and 2 deletions

View File

@ -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": (0, 9, 20),
"version": (0, 9, 21),
'blender': (2, 80, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',

View File

@ -272,7 +272,7 @@ def needs_baking(blender_object_if_armature: typing.Optional[bpy.types.Object],
# we need to bake to 'STEP', as at least two keyframes are required to interpolate
return True
if not all(all_equal(key_times) for key_times in zip([[k.co[0] for k in c.keyframe_points] for c in channels])):
if not all_equal(list(zip([[k.co[0] for k in c.keyframe_points] for c in channels]))):
# The channels have differently located keyframes
gltf2_io_debug.print_console("WARNING",
"Baking animation because of differently located keyframes in one channel")