[Bf-extensions-cvs] [726d08c9] master: glTF exporter: fix crash on armature delta detection after recent changes

Julien Duroure noreply at git.blender.org
Mon Sep 26 08:52:27 CEST 2022


Commit: 726d08c9036b939f46b59bceb72a61e3102600cc
Author: Julien Duroure
Date:   Mon Sep 26 08:52:01 2022 +0200
Branches: master
https://developer.blender.org/rBA726d08c9036b939f46b59bceb72a61e3102600cc

glTF exporter: fix crash on armature delta detection after recent changes

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

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 5f40a81a..b55692df 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -4,7 +4,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": (3, 4, 24),
+    "version": (3, 4, 25),
     'blender': (3, 3, 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 c95f9dec..b872aeaa 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
@@ -534,7 +534,8 @@ def __gather_armature_object_channel_groups(blender_action: bpy.types.Action, bl
 
         # Detect that armature is not multiple keyed for euler and quaternion
         # Keep only the current rotation mode used by bone
-        rotation, delta, rotation_modes = get_rotation_modes(target_property)
+        rotation, rotation_modes = get_rotation_modes(target_property)
+        delta = get_delta_modes(target_property)
 
         # Delta rotation management
         if delta is False:



More information about the Bf-extensions-cvs mailing list