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-08-09 20:55:52 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-08-09 20:56:13 +0300
commit5db869653a60ad387ae6bf526a3ffefeb99c2b64 (patch)
tree513ad0cd22bea5ba4dfe9abdad4103c4baff8ede /io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
parent5a937edabb313e4924ba66c21a745ab142e9b5ef (diff)
glTF exporter: check that NLA strip has an action
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py')
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
index 4a65bcd9..41a25f57 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
@@ -187,7 +187,7 @@ def __get_blender_actions(blender_object: bpy.types.Object
# so skip them for now and only write single-strip tracks.
if track.strips is None or len(track.strips) != 1:
continue
- for strip in track.strips:
+ for strip in [strip for strip in track.strips if strip.action is not None]:
blender_actions.append(strip.action)
if blender_object.type == "MESH" \