glTF exporter: fix bad check about keyframes at different timing
This commit is contained in:
parent
9666bfc81d
commit
080d204770
|
@ -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',
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue