[Bf-extensions-cvs] [2bbd76ce] master: glTF exporter: fix animation export when not sampled and constraints
Julien Duroure
noreply at git.blender.org
Thu May 30 07:35:15 CEST 2019
Commit: 2bbd76ce994615b918de2866953ff50ade072261
Author: Julien Duroure
Date: Thu May 30 07:34:38 2019 +0200
Branches: master
https://developer.blender.org/rBA2bbd76ce994615b918de2866953ff50ade072261
glTF exporter: fix animation export when not sampled and constraints
===================================================================
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 2186c344..ee910acc 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, 14),
+ "version": (0, 9, 15),
'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_samplers.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py
index 412db171..b4b5a943 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
@@ -99,6 +99,10 @@ def __gather_non_keyed_values(channels: typing.Tuple[bpy.types.FCurve],
"value": 1
}.get(target)
+ if length is None:
+ # This is not a known target
+ return ()
+
for i in range(0, length):
if bake_channel is not None:
non_keyed_values.append({
More information about the Bf-extensions-cvs
mailing list