Fix: glTF exporter: fix missing check that a SK slot is assigned

This commit is contained in:
Julien Duroure
2025-02-27 18:58:45 +01:00
parent 66ba309f6e
commit 9b67e27fc3
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (4, 4, 51),
"version": (4, 4, 52),
'blender': (4, 4, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',

View File

@@ -846,7 +846,7 @@ def __get_blender_actions(obj_uuid: str,
and blender_object.data.shape_keys is not None \
and blender_object.data.shape_keys.animation_data is not None:
if blender_object.data.shape_keys.animation_data.action is not None:
if blender_object.data.shape_keys.animation_data.action is not None and blender_object.data.shape_keys.animation_data.action_slot is not None:
# Check the action is not in list of actions to ignore
if hasattr(bpy.data.scenes[0], "gltf_action_filter") and id(blender_object.data.shape_keys.animation_data.action) in [