glTF exporter: check that NLA strip has an action

This commit is contained in:
Julien Duroure 2019-08-09 19:55:52 +02:00
parent 5a937edabb
commit 5db869653a
2 changed files with 2 additions and 2 deletions

View File

@ -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',

View File

@ -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" \