diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index f75d6c4ffc4909400eafdf0ed49c1299718e208b..07e4824a859e7bebc4869aebe47b2876d159e00a 100755 --- a/io_scene_gltf2/__init__.py +++ b/io_scene_gltf2/__init__.py @@ -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, 17), + "version": (3, 4, 18), 'blender': (3, 3, 0), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_extract.py b/io_scene_gltf2/blender/exp/gltf2_blender_extract.py index 93947acb3d71939906e1c117c5af78d9401d401f..61906ba03bc9a2fee6fbba90e1e8839b456a4210 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_extract.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_extract.py @@ -81,7 +81,8 @@ def extract_primitives(blender_mesh, uuid_for_skined_data, blender_vertex_groups use_morph_tangents = use_morph_normals and use_tangents and export_settings[gltf2_blender_export_keys.MORPH_TANGENT] key_blocks = [] - if blender_mesh.shape_keys and export_settings[gltf2_blender_export_keys.MORPH]: + # Shape Keys can't be retrieve when using Apply Modifiers (Blender/bpy limitation) + if export_settings[gltf2_blender_export_keys.APPLY] is False and blender_mesh.shape_keys and export_settings[gltf2_blender_export_keys.MORPH]: key_blocks = [ key_block for key_block in blender_mesh.shape_keys.key_blocks