Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Oeser <info@graphics-engineer.com>2019-08-14 12:32:03 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2019-08-14 12:41:36 +0300
commitc047f6460486566bc6019bae86648ab0d064ffaf (patch)
treeeb4e9133c32789a575b1c34257ac78319cb808e9 /io_scene_obj
parentd96b6d38d28fa2ec3d2ba4d186d9e0a105e83d18 (diff)
Fix T68618: OBJ export: error cleaning up (temp) meshes without geometry
Reviewers: mont29 Maniphest Tasks: T68618 Differential Revision: https://developer.blender.org/D5479
Diffstat (limited to 'io_scene_obj')
-rw-r--r--io_scene_obj/__init__.py2
-rw-r--r--io_scene_obj/export_obj.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py
index f9cda8f3..ccf5ee3b 100644
--- a/io_scene_obj/__init__.py
+++ b/io_scene_obj/__init__.py
@@ -21,7 +21,7 @@
bl_info = {
"name": "Wavefront OBJ format",
"author": "Campbell Barton, Bastien Montagne",
- "version": (3, 5, 14),
+ "version": (3, 5, 15),
"blender": (2, 80, 0),
"location": "File > Import-Export",
"description": "Import-Export OBJ, Import OBJ mesh, UV's, materials and textures",
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index d7769035..bb331534 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -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: