diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-09 06:10:37 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-09 06:10:37 +0400 |
commit | b168066648cb622af010501a7575f6cae726dff8 (patch) | |
tree | adf95178ae62cf743b5461296a80019aa8da9517 | |
parent | 8b9e2e0fd06d74fe44c613aa8f4976a1837f68c4 (diff) |
fix [#27617] .obj export regression in 2.5, unable to export curves as edge-list anymore
-rw-r--r-- | io_scene_obj/export_obj.py | 8 |
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! :) |