Merge branch 'blender-v4.2-release'

This commit is contained in:
Julien Duroure
2024-06-29 09:23:58 +02:00
2 changed files with 7 additions and 1 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, 3, 6),
"version": (4, 3, 7),
'blender': (4, 2, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',

View File

@@ -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