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:
authorCampbell Barton <ideasman42@gmail.com>2011-06-09 06:10:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-06-09 06:10:37 +0400
commitb168066648cb622af010501a7575f6cae726dff8 (patch)
treeadf95178ae62cf743b5461296a80019aa8da9517 /io_scene_obj/export_obj.py
parent8b9e2e0fd06d74fe44c613aa8f4976a1837f68c4 (diff)
fix [#27617] .obj export regression in 2.5, unable to export curves as edge-list anymore
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! :)