Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2019-05-30 08:34:38 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-05-30 08:34:38 +0300
commit2bbd76ce994615b918de2866953ff50ade072261 (patch)
treeb2afc27c425012c0a8b601fc399020b509631742 /io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py
parent8be092bce88546f3767ebdd72a2f15779cbf95ed (diff)
glTF exporter: fix animation export when not sampled and constraints
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_animation_samplers.py4
1 files changed, 4 insertions, 0 deletions
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({