[Bf-extensions-cvs] [5db86965] master: glTF exporter: check that NLA strip has an action
Julien Duroure
noreply at git.blender.org
Fri Aug 9 19:56:19 CEST 2019
Commit: 5db869653a60ad387ae6bf526a3ffefeb99c2b64
Author: Julien Duroure
Date: Fri Aug 9 19:55:52 2019 +0200
Branches: master
https://developer.blender.org/rBA5db869653a60ad387ae6bf526a3ffefeb99c2b64
glTF exporter: check that NLA strip has an action
===================================================================
M io_scene_gltf2/__init__.py
M io_scene_gltf2/blender/exp/gltf2_blender_gather_animations.py
===================================================================
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" \
More information about the Bf-extensions-cvs
mailing list