From 5db869653a60ad387ae6bf526a3ffefeb99c2b64 Mon Sep 17 00:00:00 2001 From: Julien Duroure Date: Fri, 9 Aug 2019 19:55:52 +0200 Subject: glTF exporter: check that NLA strip has an action --- io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py') 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" \ -- cgit v1.2.3