glTF exporter: export SK on no modifiers objects even if 'apply modifier' is on

This commit is contained in:
Julien Duroure 2022-11-11 17:26:06 +01:00
parent a28c3f9cc0
commit 896ee4698f
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,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": (3, 4, 44),
"version": (3, 4, 45),
'blender': (3, 3, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',

View File

@ -112,7 +112,7 @@ class PrimitiveCreator:
self.armature = None
self.key_blocks = []
if self.export_settings[gltf2_blender_export_keys.APPLY] is False and self.blender_mesh.shape_keys and self.export_settings[gltf2_blender_export_keys.MORPH]:
if self.blender_mesh.shape_keys and self.export_settings[gltf2_blender_export_keys.MORPH]:
self.key_blocks = [
key_block
for key_block in self.blender_mesh.shape_keys.key_blocks