diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index a32e51f4d28d78aa4ce6afa84064418c957cb75d..34c6f7a08a77a1fc78bc511d7f004950e07639cf 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! :)