Fix T68618: OBJ export: error cleaning up (temp) meshes without geometry

Reviewers: mont29

Maniphest Tasks: T68618

Differential Revision: https://developer.blender.org/D5479
This commit is contained in:
Philipp Oeser
2019-08-14 11:32:03 +02:00
parent d96b6d38d2
commit c047f64604
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ def write_file(filepath, objects, depsgraph, scene,
if not (len(face_index_pairs) + len(edges) + len(me.vertices)): # Make sure there is something to write
# clean up
bpy.data.meshes.remove(me)
ob_for_convert.to_mesh_clear()
continue # dont bother with this mesh.
if EXPORT_NORMALS and face_index_pairs: