Skip to content
Snippets Groups Projects
Commit c047f646 authored by Philipp Oeser's avatar Philipp Oeser
Browse files

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

Reviewers: mont29

Maniphest Tasks: T68618

Differential Revision: https://developer.blender.org/D5479
parent d96b6d38
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
bl_info = { bl_info = {
"name": "Wavefront OBJ format", "name": "Wavefront OBJ format",
"author": "Campbell Barton, Bastien Montagne", "author": "Campbell Barton, Bastien Montagne",
"version": (3, 5, 14), "version": (3, 5, 15),
"blender": (2, 80, 0), "blender": (2, 80, 0),
"location": "File > Import-Export", "location": "File > Import-Export",
"description": "Import-Export OBJ, Import OBJ mesh, UV's, materials and textures", "description": "Import-Export OBJ, Import OBJ mesh, UV's, materials and textures",
......
...@@ -386,7 +386,7 @@ def write_file(filepath, objects, depsgraph, scene, ...@@ -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 if not (len(face_index_pairs) + len(edges) + len(me.vertices)): # Make sure there is something to write
# clean up # clean up
bpy.data.meshes.remove(me) ob_for_convert.to_mesh_clear()
continue # dont bother with this mesh. continue # dont bother with this mesh.
if EXPORT_NORMALS and face_index_pairs: if EXPORT_NORMALS and face_index_pairs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment