Skip to content
Snippets Groups Projects
Commit 2f425cc1 authored by Mikhail Rachinskiy's avatar Mikhail Rachinskiy
Browse files

STL: fix T72145 crash exporting object without data

parent 5f1ad507
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,8 @@ def faces_from_mesh(ob, global_matrix, use_mesh_modifiers=False):
import bpy
# get the editmode data
ob.update_from_editmode()
if ob.mode == "EDIT":
ob.update_from_editmode()
# get the modifiers
if use_mesh_modifiers:
......@@ -94,6 +95,7 @@ def faces_from_mesh(ob, global_matrix, use_mesh_modifiers=False):
mesh = mesh_owner.to_mesh()
except RuntimeError:
return
if mesh is None:
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment