[Bf-extensions-cvs] [f1c4959c] master: glTF exporter: fix regression when exporting armature object animation with only 1 key

Julien Duroure noreply at git.blender.org
Sat Dec 18 12:02:17 CET 2021


Commit: f1c4959cd05682855c6bfa0e96924f0b6a2676aa
Author: Julien Duroure
Date:   Sat Dec 18 12:01:43 2021 +0100
Branches: master
https://developer.blender.org/rBAf1c4959cd05682855c6bfa0e96924f0b6a2676aa

glTF exporter: fix regression when exporting armature object animation with only 1 key

===================================================================

M	io_scene_gltf2/__init__.py
M	io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py

===================================================================

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index c7c44c7c..a3cc5287 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, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
-    "version": (1, 8, 3),
+    "version": (1, 8, 4),
     'blender': (3, 0, 0),
     'location': 'File > Import-Export',
     'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
index 3046a1ce..c60e7047 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py
@@ -98,7 +98,7 @@ def gather_animation_channels(blender_action: bpy.types.Action,
             if len(channel_group) == 0:
                 # Only errors on channels, ignoring
                 continue
-            channel = __gather_animation_channel(channel_group, blender_object, export_settings, None, None, bake_range_start, bake_range_end, blender_action.name, None, False)
+            channel = __gather_animation_channel(channel_group, blender_object, export_settings, None, None, bake_range_start, bake_range_end, blender_action.name, None, True)
             if channel is not None:
                 channels.append(channel)



More information about the Bf-extensions-cvs mailing list