[Bf-extensions-cvs] [080d2047] master: glTF exporter: fix bad check about keyframes at different timing
Julien Duroure
noreply at git.blender.org
Sun Jun 2 05:11:21 CEST 2019
Commit: 080d204770a1cc1a104b25235eb636cf923037f7
Author: Julien Duroure
Date: Sun Jun 2 05:10:45 2019 +0200
Branches: master
https://developer.blender.org/rBA080d204770a1cc1a104b25235eb636cf923037f7
glTF exporter: fix bad check about keyframes at different timing
===================================================================
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 3800c7ab..40e563f5 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": (0, 9, 20),
+ "version": (0, 9, 21),
'blender': (2, 80, 0),
'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 beeebf93..32656936 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
@@ -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")
More information about the Bf-extensions-cvs
mailing list