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:
Diffstat (limited to 'io_scene_obj/export_obj.py')
-rw-r--r--io_scene_obj/export_obj.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py
index a32e51f4..34c6f7a0 100644
--- a/io_scene_obj/export_obj.py
+++ b/io_scene_obj/export_obj.py
@@ -350,10 +350,14 @@ def write_file(filepath, objects, scene,
continue
# END NURBS
- if ob.type != 'MESH':
+ try:
+ me = ob.to_mesh(scene, EXPORT_APPLY_MODIFIERS, 'PREVIEW')
+ except RuntimeError:
+ me = None
+
+ if me is None:
continue
- me = ob.to_mesh(scene, EXPORT_APPLY_MODIFIERS, 'PREVIEW')
me.transform(EXPORT_GLOBAL_MATRIX * ob_mat)
# # Will work for non meshes now! :)