diff --git a/scripts/addons_core/io_scene_gltf2/__init__.py b/scripts/addons_core/io_scene_gltf2/__init__.py index f5a663c8417..f5e2ae76524 100755 --- a/scripts/addons_core/io_scene_gltf2/__init__.py +++ b/scripts/addons_core/io_scene_gltf2/__init__.py @@ -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, 3, 6), + "version": (4, 3, 7), 'blender': (4, 2, 0), 'location': 'File > Import-Export', 'description': 'Import-Export as glTF 2.0', diff --git a/scripts/addons_core/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py b/scripts/addons_core/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py index 027a9fc80af..5128bb0cffd 100755 --- a/scripts/addons_core/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py +++ b/scripts/addons_core/io_scene_gltf2/blender/exp/gltf2_blender_gather_nodes.py @@ -476,6 +476,12 @@ def gather_skin(vnode, export_settings): return None blender_object = export_settings['vtree'].nodes[vnode].blender_object + + # Lattice can have armature modifiers & vertex groups, but we don't want to export them + # Avoid crash getting mesh data from lattices + if blender_object and blender_object.type == 'LATTICE': + return None + modifiers = {m.type: m for m in blender_object.modifiers} if blender_object else {} if "ARMATURE" not in modifiers or modifiers["ARMATURE"].object is None: return None