glTF exporter: validate meshes before export
(removing NaN for example)
This commit is contained in:
parent
29c9aa3475
commit
5bffedce24
|
@ -15,7 +15,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": (1, 7, 26),
|
||||
"version": (1, 7, 27),
|
||||
'blender': (2, 91, 0),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
|
|
@ -292,6 +292,9 @@ def __gather_mesh(blender_object, library, export_settings):
|
|||
if blender_object.type != "MESH":
|
||||
return None
|
||||
|
||||
# Be sure that object is valid (no NaN for example)
|
||||
blender_object.data.validate()
|
||||
|
||||
# If not using vertex group, they are irrelevant for caching --> ensure that they do not trigger a cache miss
|
||||
vertex_groups = blender_object.vertex_groups
|
||||
modifiers = blender_object.modifiers
|
||||
|
|
Loading…
Reference in New Issue