Skip to content
Snippets Groups Projects
Commit 69b9725b authored by Julien Duroure's avatar Julien Duroure
Browse files

glTF exporter: avoid crash when all drivers are invalids

parent 5b2953ad
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
bl_info = { bl_info = {
'name': 'glTF 2.0 format', 'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', 'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (3, 3, 18), "version": (3, 3, 19),
'blender': (3, 3, 0), 'blender': (3, 3, 0),
'location': 'File > Import-Export', 'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0', 'description': 'Import-Export as glTF 2.0',
......
...@@ -74,7 +74,8 @@ def get_sk_drivers(blender_armature_uuid, export_settings): ...@@ -74,7 +74,8 @@ def get_sk_drivers(blender_armature_uuid, export_settings):
else: else:
all_sorted_channels.append(existing_idx[i]) all_sorted_channels.append(existing_idx[i])
if len(all_sorted_channels) > 0: # Checks there are some driver on SK, and that there is not only invalid drivers
if len(all_sorted_channels) > 0 and not all([i is None for i in all_sorted_channels]):
drivers.append((child_uuid, tuple(all_sorted_channels))) drivers.append((child_uuid, tuple(all_sorted_channels)))
return tuple(drivers) return tuple(drivers)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment