diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2019-08-09 20:55:52 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2019-08-09 20:56:13 +0300 |
commit | 5db869653a60ad387ae6bf526a3ffefeb99c2b64 (patch) | |
tree | 513ad0cd22bea5ba4dfe9abdad4103c4baff8ede /io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py | |
parent | 5a937edabb313e4924ba66c21a745ab142e9b5ef (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-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py | 2 |
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" \ |