diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2021-08-23 23:24:15 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2021-08-23 23:24:15 +0300 |
commit | a8c700d4ebe6a1a767758a0b79775d48d7fbe085 (patch) | |
tree | ab77004453efd8535e63f77953fda5d93bfd7296 /io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py | |
parent | 1757ec91e58a23c6dbd31b763267e1d3f5e40026 (diff) |
glTF exporter: fix animation export when no channels are valid
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py index 6c184198..3046a1ce 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_animation_channels.py @@ -118,7 +118,8 @@ def gather_animation_channels(blender_action: bpy.types.Action, blender_action.name, obj, False) - channels.append(channel) + if channel is not None: + channels.append(channel) else: for channel_group in __get_channel_groups(blender_action, blender_object, export_settings): |