From b168066648cb622af010501a7575f6cae726dff8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 9 Jun 2011 02:10:37 +0000 Subject: fix [#27617] .obj export regression in 2.5, unable to export curves as edge-list anymore --- io_scene_obj/export_obj.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'io_scene_obj/export_obj.py') 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! :) -- cgit v1.2.3