Skip to content

Commit

Permalink
Fix #1446 : validate meshes before export, removing NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed Aug 25, 2021
1 parent ae019ea commit fbbe0d7
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit fbbe0d7

Please sign in to comment.