Skip to content
Snippets Groups Projects
Commit b1680666 authored by Campbell Barton's avatar Campbell Barton
Browse files

fix [#27617] .obj export regression in 2.5, unable to export curves as edge-list anymore

parent 8b9e2e0f
No related branches found
No related tags found
No related merge requests found
...@@ -350,10 +350,14 @@ def write_file(filepath, objects, scene, ...@@ -350,10 +350,14 @@ def write_file(filepath, objects, scene,
continue continue
# END NURBS # 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 continue
me = ob.to_mesh(scene, EXPORT_APPLY_MODIFIERS, 'PREVIEW')
me.transform(EXPORT_GLOBAL_MATRIX * ob_mat) me.transform(EXPORT_GLOBAL_MATRIX * ob_mat)
# # Will work for non meshes now! :) # # Will work for non meshes now! :)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment