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 | |
parent | 5a937edabb313e4924ba66c21a745ab142e9b5ef (diff) |
glTF exporter: check that NLA strip has an action
-rwxr-xr-x | io_scene_gltf2/__init__.py | 2 | ||||
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index b09561db..1ecf2c7e 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, 46), + "version": (0, 9, 47), '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_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" \ |