[Bf-extensions-cvs] [54d8bdf1] master: glTF exporter: fix driver export when shapekey as a dot in name

Julien Duroure noreply at git.blender.org
Sun Jul 4 17:48:57 CEST 2021


Commit: 54d8bdf1f15597b9f6e1aaf308b5a0d5df785552
Author: Julien Duroure
Date:   Sun Jul 4 17:48:34 2021 +0200
Branches: master
https://developer.blender.org/rBA54d8bdf1f15597b9f6e1aaf308b5a0d5df785552

glTF exporter: fix driver export when shapekey as a dot in name

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

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

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

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 405ff3c9..c09dc7d3 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, 7, 12),
+    "version": (1, 7, 13),
     'blender': (2, 91, 0),
     'location': 'File > Import-Export',
     'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py
index 57df6306..d555bcb9 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py
@@ -332,7 +332,11 @@ def __gather_output(channels: typing.Tuple[bpy.types.FCurve],
     else:
         object_path = None
 
-    is_armature_animation = bake_bone is not None or (blender_object_if_armature is not None and object_path != "")
+    # If driver_obj is set, this is a shapekey animation
+    if driver_obj is not None:
+        is_armature_animation = False
+    else:
+        is_armature_animation = bake_bone is not None or (blender_object_if_armature is not None and object_path != "")
 
     if is_armature_animation:
         if bake_bone is None:



More information about the Bf-extensions-cvs mailing list